On Wed, 09 Aug 2000, John Porter wrote:
> Bryan C. Warnock wrote:
> >
> > Chomp removes one or more line separators from the end.
>
> It does? You're using a different version of Perl than I am.
Sorry. You're correct. I was rolling the string, list, and paragraph
mode removals all into one argument. :-(
Chomp *sometimes* remove one or more newlines from the end of a string.
#!/usr/local/bin/perl -w
$/="";
$a = "Hello\n\n\n\n\n\n";
$foo = chomp($a);
print "$foo chomped, >$a<\n";
Whammo> perl gork
6 chomped, >Hello<
I may be slow, but I make mistakes.
--
Bryan C. Warnock
([EMAIL PROTECTED])