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
In reply to Re^2: Executing line number
by johngg
in thread Executing line number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |