IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2379


Ignore:
Timestamp:
Nov 16, 2004, 2:08:50 PM (22 years ago)
Author:
jhoblitt
Message:

use ## to deactivate code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/misc/perlCodeConventions.tex

    r2378 r2379  
    1 %%% $Id: perlCodeConventions.tex,v 1.20 2004-11-16 23:40:04 jhoblitt Exp $
     1%%% $Id: perlCodeConventions.tex,v 1.21 2004-11-17 00:08:50 jhoblitt Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    469469
    470470Comments should not be used to comment out large sections of code.  When
    471 deactivating 2 or fewer lines of code a \code{#} should be used at the very
    472 beginning of the line(s).
     471deactivating 2 or fewer lines of code a double hash (\code{##}) should be used
     472at the very beginning of the line(s).
    473473
    474474Example of deactivating a single line code.
     
    476476\begin{verbatim}
    477477        if ($foo) {
    478     #        print("foo");
     478    ##        print("foo");
    479479        }
    480480\end{verbatim}
Note: See TracChangeset for help on using the changeset viewer.