Re: [Perl-unix-users] Strange behaviour in Perl

2006-01-27 Thread Arijit Das
Thanks a lot folks.   My mistake...I should have looked at "-p"'s significance before posting it.   Thanks again, ArijitDZ-Jay <[EMAIL PROTECTED]> wrote: Arijit Das wrote:> I am just wondering why is this giving a strange result. Any clues...?> This is from the Perl In A Nutshell book:---

Re: [Perl-unix-users] Strange behaviour in Perl

2006-01-25 Thread DZ-Jay
Arijit Das wrote: I am just wondering why is this giving a strange result. Any clues...? This is from the Perl In A Nutshell book: -- -p: Causes Perl to assume the following loop around your script, which makes it iterate over filename arguments: LINE: while (<>) { .