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

#line does not work in eval ""

Thread Next
From:
Nick Ing-Simmons
Date:
April 28, 2000 07:34
Subject:
#line does not work in eval ""
Message ID:
200004281433.PAA21309@tiuk.ti.com

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

Prints:
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 <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About