Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: To call a sub from another sub

by TedPride (Priest)
on Feb 02, 2006 at 11:31 UTC ( [id://527308]=note: print w/replies, xml ) Need Help??


in reply to To call a sub from another sub

He probably wants to know how to pass one sub as an argument to another:
use strict; use warnings; bongo(\&bingo); sub bingo { print "bingo"; } sub bongo { my $p = $_[0]; $p->(); }

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-03-19 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found