in reply to replacing say function
That will not work if you ever use a file handle as the first argument (without comma), though.sub say { local $\ = "\n"; print @_ ? @_ : $_; }
And, uh... there's also Perl6::Say
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: replacing say function
by d5e5 (Beadle) on Feb 11, 2011 at 21:54 UTC | |
by bart (Canon) on Feb 11, 2011 at 22:45 UTC | |
by cyber-guard (Acolyte) on Feb 13, 2011 at 18:09 UTC | |
|
Re^2: replacing say function
by JavaFan (Canon) on Feb 11, 2011 at 21:55 UTC | |
by bart (Canon) on Feb 11, 2011 at 22:50 UTC | |
by JavaFan (Canon) on Feb 12, 2011 at 10:53 UTC |