But to make your code self-documenting, the best practice might actually be
my($package, $file, $line) = caller(); sprintf "file=%s line=%s param=%d\n", $file, $line, $param;
In reply to Re: Skipping parameters in sprintf %, elegantly
by ambrus
in thread Skipping parameters in sprintf %, elegantly
by brycen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |