Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

PERL Programming

  1. May 30, 2004 #1
    How do i pop nth element from array ???

    Say
    @array=(a,b,c,s,d,f,g);
    How do u i pop 3rd element(c) from array ???
     
  2. jcsd
  3. May 30, 2004 #2
    I think this should work (>.<)

    print "$array[2]"​
     
  4. May 30, 2004 #3
    That wasn't my question,
    Anyhow i found it ,

    use


    splice @array, OFFSET, LENGTH;
     
  5. May 30, 2004 #4
    You made me cry and shameful...
    I thought you wanted to output it....I am really sorry about that...
    :tongue2:
     
  6. May 30, 2004 #5
    Pop means removing an element from stack.

    Anyhow thanx.
     
  7. May 30, 2004 #6
    <<<smiling>>>
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: PERL Programming
  1. Numbers In Perl (Replies: 3)

  2. Graphics Programs? (Replies: 6)

Loading...