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

Re^2: hash and array mismatch

by TGI (Parson)
on May 10, 2007 at 17:06 UTC ( [id://614696]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    push @{$dataPos{$data[$_]}}, $_ for 0 .. $#data;
    
  2. or download this
    my $foo;        # $foo is undefined
    push @$foo, 23;
    print "I found @{$foo}\n";
    
  3. or download this
    push @{ undef() }, 99;
    
  4. or download this
    my $foo = undef;
    shift @{$foo};
    print "Foo: $foo\n";  # prints Foo: ARRAY(0x12121212)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found