in reply to Re^2: Usage of flags in scriptsin thread Usage of flags in scripts
sub say { # Perl Hacks #86 print @_, "\n"; } [download]
$ perl -e 'sub say { print @_, "\n" } say STDOUT "Hi"' Can't locate object method "say" via package "IO::Handle" at -e line 1 [download]