Mike wrote:
>
> What happens if I call a perl script as follows:
>
> test.pl < abc
The contents of the file "abc" are directed to the standard input of
"test.pl"
> What picks up the abc inside the script? In shell scripting I would just
> use a read statement (read a). Is there a like function in perl?
# reads from standard input, stores the current line in $_
while ( <STDIN> ) {
# use the <> special null file handle to read from standard input
while ( <> ) {
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]