Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: references--hard vs anonymous operational weirdness

by Fletch (Chancellor)
on Mar 23, 2008 at 03:23 UTC ( #675722=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @array;
    for my $tab ( @things ) {
    ...
      ## As you've seen, this leaves everything pointing at the same array
      $data{ $tab } = \@array;
    }
    
  2. or download this
    for my $tab ( @things ) {
      my @array = frobnicate( $tab );
      $data{ $tab } = \@array;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://675722]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2020-10-28 01:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (259 votes). Check out past polls.

    Notices?