in reply to Re: Are prototypes evil?
in thread Are prototypes evil?
I think you're mixing up two things:
A ($) prototype would force scalar input to a sub, but that doesn't have any influence on the return context.
Look at this:
sub Input ($) { wantarray ? split /,/ : $_; } my @List = Input $Source;
~Django
"Why don't we ever challenge the spherical earth theory?"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Are prototypes evil?
by BrowserUk (Patriarch) on Sep 02, 2002 at 22:15 UTC |
In Section
Meditations