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 having an uproarious good time at the Monastery: (16)
As of 2015-07-01 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (3 votes), past polls