martin <> wrote:
> Hi, I have been reading the postings on chopm and chop. I am wondering
> if one would use
>
> while <INPUTFILE>
Please do not post pseudocode, post real Perl code, with parenthesis
and curlies and whatnot.
> chomp;chop;
> what is the use of this,
It removes the line ending sequence if one is present, and then
removes one more character from the end of $_.
ie. it doesn't appear to be of much general use at all.
> doesn't chomp already remove the end of line
> delimiter whatevere that happens to be.
Yes. (but newline is not a "delimiter")
Then chop() does what chop() does, namely removes whatever character
is now at the end.
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas