The special literals __FILE__, __LINE__, and __PACKAGE__ represent the current filename, line number, and package name at that point in your program. They may be used only as separate tokens; they will not be interpolated into strings.But really, there's no need in this case. If the message you pass to die doesn't end in a newline, Perl will supply the current line number for you.
In reply to Re: Predefined Variable
by Eimi Metamorphoumai
in thread Predefined Variable
by Joe_Cullity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |