Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: Removing elemets from an array

by linuxer (Curate)
on Dec 30, 2012 at 17:58 UTC ( #1010949=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    #! /usr/bin/perl -l                                                   
    use strict;                                                           
    print "outside before calling foo(): @array";                         
    print "outside after calling foo(): @array"; 
  2. or download this
    outside before calling foo(): 1 2 3 4 5
      inside before modification: 1 2 3 4 5
      inside after modification: a b c d e
    outside after calling foo(): a b c d e

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010949]
[Lady_Aleena]: Well, some of the data returned is taylored for the printing of certain elements.
[atcroft]: Lady_Aleena: Understandable.
[Lady_Aleena]: However, in this instance, the script will grow much larger, while the module will shrink.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-05-29 02:51 GMT
Find Nodes?
    Voting Booth?