Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: (Ovid - minor code nits) Re: Adding autoloaded methods to symbol table with using strict refs

by strat (Canon)
on Feb 26, 2002 at 13:14 UTC ( #147545=note: print w/ replies, xml ) Need Help??


in reply to (Ovid - minor code nits) Re: Adding autoloaded methods to symbol table with using strict refs
in thread Adding autoloaded methods to symbol table with using strict refs

Thank you very much for your help and especially thx to Ovid.

I put the use vars in at that position - in this special case - I feel that this is the position it belongs to.

Unfortunately, I can't use perl5.6x yet, because it is too slow and takes too much memory
Perl5.005_03/AS 522: ~20 minutes, ~450 MB RAM
Perl5.61/AS 631: ~90 minutes, ~700 MB RAM

Please, don't wonder about this huge memory usage; this script synchronizes some Sql-databases with a Directory System from a big german bank, and I chose to prefer a shorter runtime (which was about 34 hours before I started this project) to memory usage.

The posted Script is just a little Testscript because I didn't want to post the original code, for it is much too long. I think, this code shows the issues, and as my english is not so good, it might have helped me to say what i wanted to do :-)

Ad constructor: in 90%, it's just a "normal" constructor, but sometimes I need to "clone" objects, so that's what my $class = ref($proto) || $proto; stands for. The $parent isn't needed any more, I played around some months ago with it, and somehow it has survived.

Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"


Comment on Re: (Ovid - minor code nits) Re: Adding autoloaded methods to symbol table with using strict refs

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2014-08-21 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls