Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Declaring a code ref with arguments

by Abigail-II (Bishop)
on Aug 05, 2003 at 09:12 UTC ( [id://280927]=note: print w/replies, xml ) Need Help??


in reply to Declaring a code ref with arguments

%hash = (no_arg => \&print_me, with_arg => sub {print_me "Hello World, again\n"}, );

Abigail

Replies are listed 'Best First'.
Re: Re: Declaring a code ref with arguments
by !unlike (Beadle) on Aug 05, 2003 at 09:30 UTC

    D'oh! Of course! Silly me.

    Thanks to all who repied. The fix worked a treat.

    Cheers

    !unlike

    I write my Perl code like how I like my sex: fast and dirty. ;)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-20 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found