Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: right usage of #line ??

by jjmoka (Beadle)
on Sep 14, 2015 at 19:47 UTC ( [id://1141969]=note: print w/replies, xml ) Need Help??


in reply to Re^2: right usage of #line ??
in thread right usage of #line ??

I found a working solution. I post it here, in case others will join this page from Google, one day. Instead of trying to fix the #line issue, I decided to work around those evals. The 'evaled' code is not properly stored in Symbol Tables (much on this can be found also on this site). As the problem is always on the first entering file, I made a wrapper.pl of 2 lines, giving the problem to it, and having my code clean:
require '/home/jjmoka/TEST/code/test2.pl' $DB::single=2;
This worked both for the simplest example, and for my real production use case (with the proper path in the require).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1141969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found