in reply to Re^2: Can we do without auxiliary variable here?
in thread Can we do without auxiliary variable here?
rovf:
Yeah, I clearly missed on that one. I then tried:
sub print_prefix { local $/="\nPrefix: "; print @_; }
But that didn't work. On first guess, I thought it would do OK. After reading the documentation, I thought it would print it at least once. But what I got was...nothing. It never printed prefix at all. The only other methods I could think of had already been covered.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|