Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Possible useless use of map

by ikegami (Patriarch)
on Mar 18, 2010 at 20:40 UTC ( [id://829481]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -c -we'f()+123'
    Useless use of addition (+) in void context at -e line 1.
    -e syntax OK
    
  2. or download this
    $ perl -we'my $hr; $hr->{stuff}{foo}'
    Useless use of hash element in void context at -e line 1.
    
  3. or download this
    $ perl -we'my $hr; $_ = \%{ $hr }; $_ = \%{ $_->{stuff} }; $_->{foo};'
    Useless use of hash element in void context at -e line 1.
    
  4. or download this
       ___________________ scalar context pad fetch. autovivifies
      /   ________________ deref
    ...
     |  |   |    |   /
    |--|-|------|-|----|
    $hr->{stuff}->{foo};
    
  5. or download this
    $hr->{stuff} //= {};
    

Log In?
Username:
Password:

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

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

    No recent polls found