Changeset 2400 for trunk/doc/misc/perlCodeConventions.tex
- Timestamp:
- Nov 22, 2004, 4:51:32 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/misc/perlCodeConventions.tex (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/misc/perlCodeConventions.tex
r2399 r2400 1 %%% $Id: perlCodeConventions.tex,v 1.2 4 2004-11-23 02:49:54jhoblitt Exp $1 %%% $Id: perlCodeConventions.tex,v 1.25 2004-11-23 02:51:32 jhoblitt Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 579 579 $x = sqrt($x2); # Correct 580 580 $i++; # Correct 581 $x = sqrt($x2); $i++; # A void!581 $x = sqrt($x2); $i++; # AVOID! 582 582 \end{verbatim} 583 583 … … 611 611 \begin{verbatim} 612 612 return undef; # Correct 613 return; # A void!613 return; # AVOID! 614 614 615 615 return $myDisk->size; … … 697 697 698 698 \begin{verbatim} 699 foreach (@workingList) { # A void!699 foreach (@workingList) { # AVOID! 700 700 # do stuff with $_ 701 701 }
Note:
See TracChangeset
for help on using the changeset viewer.
