in reply to Can we do without auxiliary variable here?
rovf:
I rather like:
#!/usr/bin/perl use warnings; use strict; my $prefix="prefix: "; sub printpre { unshift @_, $prefix; print @_; } printpre "apple ", "banana ", "tomfoolery ", "\n";
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can we do without auxiliary variable here?
by chromatic (Archbishop) on Feb 28, 2011 at 22:20 UTC | |
by roboticus (Chancellor) on Feb 28, 2011 at 23:07 UTC | |
|
Re^2: Can we do without auxiliary variable here?
by ikegami (Patriarch) on Feb 28, 2011 at 23:19 UTC | |
|
Re^2: Can we do without auxiliary variable here?
by rovf (Priest) on Mar 01, 2011 at 11:20 UTC | |
by roboticus (Chancellor) on Mar 01, 2011 at 11:38 UTC |