in reply to RE: RE: RE: RE: Re: How to tell eval where the code is from
in thread How to tell eval where the code is from
and goes on to give some examples.Plain Old Comments (Not!) Much like the C preprocessor, Perl can process line directives. Using this, one can control Perl's idea of filenames and line numbers in error or warning messages (especially for strings that are processed with eval()). The syntax for this mechanism is the same as for most C preprocessors: it matches the regular expression /^#\s*line\s+(\d+)\s*(?:\s"([^"]*)")?/ with $1 being the line number for the next line, and $2 being the optional filename (specified within quotes). Here are some examples that you should be able to type into your command shell:
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: RE: RE: RE: Re: How to tell eval where the code is from
by tilly (Archbishop) on Aug 08, 2000 at 18:03 UTC | |
by tilly (Archbishop) on Aug 09, 2000 at 17:09 UTC |