Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Are prototypes evil?

by Django (Pilgrim)
on Sep 02, 2002 at 21:53 UTC ( [id://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;

~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

    Your right! I was talking twaddle!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://194642]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found