Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Better Style

by logan (Curate)
on Sep 23, 2003 at 21:04 UTC ( [id://293684]=note: print w/replies, xml ) Need Help??


in reply to Better Style

On the most basic dumbed-down level: Put all the subs in a single file. Name it my_subs.pm. Make sure that the last line of the file is this:

1;
That's a one, not an "L", BTW.

At the top of your perl script, put use my_subs;

This isn't an optimal solution by any means, but it will work. From there, you'll want to read the chapters on Packages, Modules, and Objects in the Camel Book.

-Logan
"What do I want? I'm an American. I want more."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-20 03:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found