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

Re: array ref problem

by chrism01 (Friar)
on Nov 03, 2008 at 07:35 UTC ( [id://721031]=note: print w/replies, xml ) Need Help??


in reply to array ref problem

Also, you don't call a sub with '&', just name it. That's old-school Perl4, now deprecated. In fact the only time you would now (afaik) is if you want a a ref-to-sub.

Replies are listed 'Best First'.
Re^2: array ref problem
by rovf (Priest) on Nov 03, 2008 at 10:13 UTC
    In fact the only time you would now (afaik) is if you want a a ref-to-sub.

    or when forwarding to another sub:

    sub _foo_impl { ... } sub foo { .... &_foo_impl; ... } foo(1,2,3); # _foo_impl(1,2,3) gets called

    -- 
    Ronald Fischer <ynnor@mm.st>
      In fact the only time you would now (afaik) is if you want a a ref-to-sub.
      or when forwarding to another sub:

      ...or when you want to bypass the prototype of the sub you're calling.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-23 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found