Lost Sheep Of the Porn wrote:
On Jan 11, 5:28 am, [EMAIL PROTECTED] (Rob Dixon) wrote:

- die() will not show the program file and line number where it was
   called if there is a newline at the end of its string parameter.

Is this...

die "Couldn't open filedata for reading: $!\n";

The string parameter?

I'd guess Rob means that

    "Couldn't open filedata for reading: $!\n"

is.

But as usual it's better to go to the perldoc to gain clarity. From "perldoc -f die":

"If the last element of LIST does not end in a newline, the current script line number and input line number (if any) are also printed, and a newline is supplied."

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to