in reply to Re: Executing line number
in thread Executing line number
You can use the babycart operator to interpolate bits of code into a double-quoted string, not that it saves much, if any, typing or looks any clearer.
warn "file: @{ [ __FILE__ ] } line: @{ [ __LINE__ ] } - oops\n";
I hope this is of interest.
Cheers,
JohnGG
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Executing line number
by Burak (Chaplain) on Sep 09, 2009 at 22:37 UTC |