develooper Front page | perl.perl5.porters | Postings from November 1999

stuff to add to perlvar, re: $/

Thread Next
From:
Jeff Pinyan
Date:
November 11, 1999 21:41
Subject:
stuff to add to perlvar, re: $/
Message ID:
Pine.GSO.4.10.9911120040020.19132-100000@crusoe.crusoe.net
Although setting $/ to "" is mentioned, saying Perl treats empty lines as
delimiters, I think it may be useful to explicitly mention that:

  {
    $/ = "";
    chomp(@para = <FH>);
  }

Removes all the \n's at the end of each "paragraph".  This is a rather
special case.

I could submit a patch if you're gonna be all "submit a patch"y about it.

-- 

  MIDN 4/C PINYAN, USNR, NROTCURPI     http://www.pobox.com/~japhy/
  jeff pinyan: japhy@pobox.com     perl stuff: japhy+perl@pobox.com
  "The Art of Perl"               http://www.pobox.com/~japhy/book/      
  CPAN ID: PINYAN  http://www.perl.com/CPAN/authors/id/P/PI/PINYAN/
  PerlMonth - An Online Perl Magazine     http://www.perlmonth.com/


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About