Tassilo Von Parseval wrote:
>
> On Tue, Jun 10, 2003 at 11:49:25PM -0700 Harry Putnam wrote:
> >
> > ## Set a marker to know when we are in a new file
> > $fname_for_line_cnt = '';
> > for (@files) {
> > chomp;
>
> I don't think that the entries in @ARGV contain newlines at the end.
> Actually I know they don't. :-)
Well it could happen but you would really have to want it that way.
$ perl -le'for(@ARGV){print length; chomp; print length}' one 'two
' three
3
3
4
3
5
5
And of course, if you have a file name with an actual newline in it then
you don't want to remove it. :-)
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]