Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: phantom subroutine parameter values

by Discipulus (Monsignor)
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*

Replies are listed 'Best First'.
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?
[shmem]: holli: all of our machinery is more perfect in its realm than any human being in theirs (Günther Anders), which doesn't mean not having fun, albeit dangerous sometimes.
[ww]: That's a big "if", holli.
[holli]: well the google car drove 5 times as far as the average human without an accident didnt it?
[ww]: Less than confident that ai+hardware is up (yet) to randomness and counterintuitive behavior on streets of NY

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (16)
As of 2017-11-21 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (301 votes). Check out past polls.

    Notices?