Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: phantom subroutine parameter values

by Discipulus (Curate)
on Apr 16, 2008 at 08:00 UTC ( #680747=note: print w/ replies, xml ) Need Help??


in reply to Re^2: phantom subroutine parameter values
in thread phantom subroutine parameter values

uh?! it seems a feature! in any case i like calling with the & 'cause i spot easy subroutine's calling.

if i understand :

sub refinemydata { my $data = shift; &is_refined:return?&rerefine;}
could be a valid syntax too ?
something new

Lor*


Comment on Re^3: phantom subroutine parameter values
Download Code
Re^4: phantom subroutine parameter values
by ikegami (Pope) on Apr 16, 2008 at 10:57 UTC
    The ampersand is functional, not decorative. &func(args) is not the same as func(args). The function's prototype is ignored in the former. And &func, &func() and func() are all different. @_ is left untouched by the first.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (17)
As of 2014-09-02 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (22 votes), past polls