Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-09-27 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (495 votes). Check out past polls.