Joseph L. Casale wrote:
OK, I saw your example and noted it. I intended on using next time as I know
there will be:)
But now I am convinced, as the lack of error checking in my script worries me.
I'll take yours and fit it in!
I do need to read up on what you're doing as I am not clear on its syntax in
this email. I am using this:
if ($#ARGV != 1) {
print "usage: ConvertASCII.pl \"input file name\" \"output file name\"\n";
exit;
}
Error messages should be printed to STDERR (that's what it's there for).
It's better to use die or warn. A module or an object should use the
subroutines in Carp.
See:
perldoc -f die
perldoc -f warn
perldoc Carp
--
Just my 0.00000002 million dollars worth,
Shawn
"For the things we have to learn before we can do them, we learn by
doing them."
Aristotle
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/