Changeset 2407
- Timestamp:
- Nov 23, 2004, 1:12:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/doc/misc/perlCodeConventions.tex (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/misc/perlCodeConventions.tex
r2404 r2407 1 %%% $Id: perlCodeConventions.tex,v 1.2 8 2004-11-23 05:03:47jhoblitt Exp $1 %%% $Id: perlCodeConventions.tex,v 1.29 2004-11-23 23:12:00 jhoblitt Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 457 457 \subsection{Lexical Variables} 458 458 459 One declaration per line with a single place between \code{my} and the identifier .459 One declaration per line with a single place between \code{my} and the identifier: 460 460 461 461 \begin{verbatim} … … 464 464 \end{verbatim} 465 465 466 is preferred over 466 is preferred over: 467 467 468 468 \begin{verbatim} … … 471 471 472 472 In almost all situations with the exception of when parameters are being passed 473 into a subroutine. 474 475 Do not put different types on the same line. Example: 476 \begin{verbatim} 477 my ($foo, @fooArray); # AVOID! 473 into a subroutine or variables are highly related \emph{and} the intent is 474 plainly obvious. 475 476 \begin{verbatim} 477 my ($verbose, $help); # Correct when the meaning is clear 478 \end{verbatim} 479 480 Do not put different types on the same line. Example: 481 482 \begin{verbatim} 483 my ($foo, @fooArray); # AVOID! 478 484 \end{verbatim} 479 485
Note:
See TracChangeset
for help on using the changeset viewer.
