in reply to RE: Re: How to tell eval where the code is from
in thread How to tell eval where the code is from

Inside your eval, add something like:
$code = $database{$AUTOLOAD}; $pseudo_file = get_pseudo_for($AUTOLOAD); # like "Database_entry_for_p +kg::foo" eval qq{#line 1 "$pseudo_file"\n$code}; ...
Now when an error triggers, you'll get
whatever error from Database_entry_for_pkg::foo, line 14
in $@ Use the cpp triggers, luke!

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
RE: RE: RE: Re: How to tell eval where the code is from
by Yaakov (Novice) on Aug 08, 2000 at 16:58 UTC
    Thank you very much. This solves my problem.

    I would much appreciate a source reference where I could have found that information myself. I bet I find other interesting things there, too.

    Yaakov