in reply to Re^2: "Can't open perl script..." :-(
in thread "Can't open perl script..." :-(

First of all, welcome to the Perl community!

As to your last question,

<STDIN>

will read whatever you type at the command line until you hit

Ctrl-Z <ENTER>(on Windows) or

Ctrl-D(on *nix)

Mentioning that you "need to use Perl in school" reminds me of my having to learn it so that I could maintain some Perl code for my job. I started reading Learning Perl and promptly fell in love with the language.

EDIT: Corrected for use on Windows. Thanks AnomalousMonk!

Replies are listed 'Best First'.
Re^4: "Can't open perl script..." :-(
by AnomalousMonk (Archbishop) on Feb 15, 2010 at 20:58 UTC
    ...  <STDIN> will read whatever you type at the command line until you hit Ctrl-D.

    Ctrl-D for *nix. In Windose, it's Ctrl-Z.