No. You can make it work with barewords (in addition to scalars and whatnot), but the argument would be mandatory and would have to be followed by a comma.
sub myprint(*@) { ... } myprint STDOUT, "foo", "bar";
In reply to Re: Is there a way to emulate 'print' using prototype?
by ikegami
in thread Is there a way to emulate 'print' using prototype?
by AGhoulDoingPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |