Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Re: Are prototypes evil?

by Django (Pilgrim)
on Sep 02, 2002 at 21:53 UTC ( #194642=note: print w/replies, xml ) Need Help??

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;

"Why don't we ever challenge the spherical earth theory?"

Replies are listed 'Best First'.
Re: Re: Re: Are prototypes evil?
by BrowserUk (Pope) on Sep 02, 2002 at 22:15 UTC

    Your right! I was talking twaddle!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194642]
and not a whimper to be heard...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-12-18 09:35 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (475 votes). Check out past polls.