Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Two simple code style advice questions

by blue_cowdawg (Monsignor)
on Jan 16, 2013 at 14:33 UTC ( #1013581=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %tests = map { $_ => 0 ) qw/ tfred tjock tfortytwo / ;
    
  2. or download this
    my $tests ={};
    map { $tests -> { $_ } = 0 } qw/ tfred tjock tfortytwo /;
    
  3. or download this
    callToSub(\%tests);
    
  4. or download this
    my $errstr = ( $case != OK ? $msg[$case] : "" );
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-10-20 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (76 votes), past polls