Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: (jeffa) Re: Passing variables is as easy as passing gas

by mattg (Novice)
on Nov 03, 2001 at 01:20 UTC ( [id://122926]=note: print w/replies, xml ) Need Help??


in reply to (jeffa) Re: Passing variables is as easy as passing gas
in thread Passing variables is as easy as passing gas

Okay, I'll show my utter ignorance of OO and ask if OO in Perl is anything more (in a general sense, of course) than modularized subroutines? Aside from the global variables, I've broken the script up into numerous subroutines all of which operate (as much as is possible) independent of each other.

Also, of the 4000 lines, only about 750 are actually in the main loop of the Tk interface, the rest are taken up by the subroutines (21 in total). It's for this reason that the global variables worry me, because after a while it does become difficult to know where they have been littered throughout the subroutines and ensure that I haven't accidentally put them in a position of being modified (but I'm checking my code with a fine-toothed comb now, as the saying goes).

I'm going to see if I can get my hands on a copy of the OO Perl book, and will see what I can do about putting the globals into a module. Thanks for the responses!

matt

  • Comment on Re: (jeffa) Re: Passing variables is as easy as passing gas

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found