On Jan 14, yun yun said:

>I only know use "#" to note one line, but how about
>several lines?

You can wrap it in Pod.

  # this is in Perl
  $foo = 1;

  =pod

  these lines of code are not seen by the compiler
  so you can comment out huge blocks of code here

  # not in Perl
  $foo = 2;

  =cut

  # back to Perl
  print $foo;  # 1, not 2

perldoc perlpod for more details.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to