in reply to What is function of a filehandle read operation operation when no filehandle is specified?

I'm not sure what your question is, but if you want to know what that does... it reads from STDIN
perl -ne print # equal to perl -e 'while (<>){print}'
Oh.. it also checks the files on the command line... (which is probably how you're using it anyhow)

Enjoy!

--
Casey

Replies are listed 'Best First'.
RE: Re: What is function of a filehandle read operation
by merlyn (Sage) on Aug 08, 2000 at 01:31 UTC
    It reads from STDIN only when there are no entries in @ARGV. So, you're partially right, but wrong if there are command line arguments.

    -- Randal L. Schwartz, Perl hacker