| YAPC::NA 2004 | Perl Style Guides for Large Projects | #20 |
Slash Style Guide: Style 3
$value = $foo || $bar;
open($fhandle, $filename) or &warn("Can't open file $file. $!");
foo($bar) and baz($buz); # wrong
baz($buz) if foo($bar); # right
open(FILE, $fh) or &error ($!); # right
&error($!) unless open(FILE, $fh); # wrong
print <<EOT;
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.
EOT
|
| << Previous | Index | Next >> | Copyright © 2004 Daniel Allen |