
yapp
User
Mar 17, 2002, 6:43 AM
Post #11 of 11
(533 views)
|
|
Re: [gregarios] Passing a Variable?
[In reply to]
|
Can't Post
|
|
It just depends on what you want to do with your program. At least, you have the settings separated from the programming code, which is a good thing. For a simple program, my use vars method would be good enough. It just creates new symbol entries in the package namespace, which can be used globally in that package (often main) However, when you're using 50 variables, you might want to use a different approach. That also requires good development. I don't know any trick that just solves such bug problem. The .pm method actually does some Object Orientated programming trick. OOp is a very very very cool way of programming, if you're deep in it and understand the use of it.. Otherwise, I believe it's just confusing....althrough some people think different about this. Yet Another Perl Programmer _________________________________ ~~> [url=http://www.codingdomain.com]www.codingdomain.com <~~ More then 3500 X-Forum [url=http://www.codingdomain.com/cgi-perl/downloads/x-forum]Downloads!
|