KW.pm | Perl Style Guides | #18 |
Slash Style Guide: Style 3
$value = $foo || $bar; open(FILE, $file) or die $!;
foo($bar) and baz($buz); # wrong baz($buz) if foo($bar); # right
open(FILE, $fh) or die $!; # right die $! unless open(FILE, $fh); # wrong print "Starting\n" if $verbose; # right $verbose && print "Starting\n"; # wrong
print <<THERE; This is a whole bunch of text. I like it. I don't need to worry about messing with lots of print statements and lining them up. THERE
|
<< Previous | Index | Next >> | Copyright © 2002 Daniel Allen |