Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Fletch (Bishop)
on Mar 23, 2008 at 03:23 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://675722]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-25 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found