Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Passing arguments to a function reference

by choroba (Chancellor)
on Jul 21, 2013 at 20:06 UTC ( #1045534=note: print w/replies, xml ) Need Help??


in reply to Passing arguments to a function reference

If a subroutine reference is expected, you have to provide a wrapper subroutine to give it arguments:
SIG{ALRM} = sub { Timeout($error) };
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045534]
help
Chatterbox?
[marto]: Corion Depeche mode were great last night
[Corion]: marto: Whooo! ;) That gives me hope for the large-stadium experience ;)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2017-03-27 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.