Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to load the subs without running the script

by repellent (Priest)
on Aug 03, 2010 at 21:31 UTC ( [id://852754]=note: print w/replies, xml ) Need Help??


in reply to SOLVED: How to load the subs without running the script

Quick and dirty: modify monster.pl and wrap the entire code in a function - i.e. put it in sub run { <all code goes here> }. Then do monster.pl;

Scripts as Modules makes an interesting read.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-18 15:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found