in reply to Re^2: Usage of flags in scripts
in thread Usage of flags in scripts

or even...
sub say { # Perl Hacks #86 print @_, "\n"; }

Replies are listed 'Best First'.
Re^4: Usage of flags in scripts
by JadeNB (Chaplain) on Jan 01, 2009 at 18:25 UTC
    Except that this doesn't handle saying to filehandles properly:
    $ perl -e 'sub say { print @_, "\n" } say STDOUT "Hi"' Can't locate object method "say" via package "IO::Handle" at -e line 1