Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: caller() returns wrong line on multi-line function call

by RonW (Parson)
on Sep 15, 2017 at 19:01 UTC ( #1199474=note: print w/replies, xml ) Need Help??


in reply to Re^2: caller() returns wrong line on multi-line function call
in thread caller() returns wrong line on multi-line function call

I wanted to include in the output any comments in the script adjacent to each function call to generate a regex in the output

Seems a reasonable thing to me.

My approach would be to change the script so those comments are string literal instead of actual comments. Then the text is readily available to your generator script to include in the generated module.

  • Comment on Re^3: caller() returns wrong line on multi-line function call

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2019-05-25 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (152 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!