On Jan 28, Naveen Parmar said:
>How do I have Perl script accept input from a file?
Two ways that come to mind:
while (<>) {
# this reads from the command-line arguments as filenames
# or from STDIN if there are no arguments
}
or
open FILE, "< $ARGV[0]" # uses the first arg as a
Hello,
How do I have Perl script accept input from a file?
TIA,
- NP
_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For