Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: hash and array mismatch

by TGI (Parson)
on May 10, 2007 at 17:06 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-09-30 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?