develooper Front page | perl.perl5.porters | Postings from April 2000

#line does not work in eval ""

Thread Next
Nick Ing-Simmons
April 28, 2000 07:34
#line does not work in eval ""
Message ID:

#!perl -x
eval qq[#line 1 ""\n; warn "here"];

here at (eval 1) line 2.

I wish it didn't ;-)

(I am working on a low-tech "turn this scripts and its modules into 
an executable" scheme and I am having a heck of time trying to 
relate errors back to where I started.  
Basis of scheme is 
 *CORE::GLOBAL::require = \&myrequire;
and myrequire has access to a hash with all the modules' source
code in which it eval-s. - this works with 5.005_03)

Any idea why it does not work?
Should it?

Nick Ing-Simmons <>
Via, but not speaking for: Texas Instruments Ltd.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About