Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: phantom subroutine parameter values

by rpelak (Sexton)
on Apr 15, 2008 at 03:53 UTC ( #680425=note: print w/ replies, xml ) Need Help??


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

Thanks guys. I knew it was something simple... That explains why a lot of my old code doesn't have ampersands... Sucks be forced to program in tcl for a few years... rpelak


Comment on Re^2: phantom subroutine parameter values
Re^3: phantom subroutine parameter values
by Discipulus (Priest) on Apr 16, 2008 at 08:00 UTC
    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*
      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://680425]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2015-07-06 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (74 votes), past polls