Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Non-destructive array processing

by Ovid (Cardinal)
on Jan 20, 2003 at 22:27 UTC ( #228509=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $r1 = sub { \@_ }->(@array);
    my $r2 = \@array;
    
  2. or download this
    use Data::Dumper;
    my @array = 1..10;
    ...
    print Dumper \@array;
    my $r2 = \@array;
    print \@array,"\n",$r2;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://228509]
help
Chatterbox?
[Corion]: Hmm - the longer I work, the more such sentences I collect:
[Corion]: "If I wanted to work with people, I would have become a coroner."
[Corion]: "If I wanted to work with hot air, I would have become a baloonist"
[Corion]: "If I wanted to work with flaps, I would have become a mailman"

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-09-21 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (248 votes). Check out past polls.

    Notices?