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

Re^2: AUTOLOAD for variables?

by dpuu (Chaplain)
on Jul 08, 2004 at 06:00 UTC ( #372678=note: print w/ replies, xml ) Need Help??


in reply to Re: AUTOLOAD for variables?
in thread AUTOLOAD for variables?

I like the trick but, unfortunately, the evil of my users far surpasses it. Its not uncommon to see code such as:

my $value= ${ uc join "_", @$reg_spec{ qw( device reg field ) } };
You really don't want to see some of the more nasty code. Honest. Especially not the 70000 line regex (its one saving grace is the /x modifier). And perhaps not the script that parses another script's --verbose output. Or perhaps ...

--Dave
Opinions my own; statements of fact may be in error.


Comment on Re^2: AUTOLOAD for variables?
Download Code
Re^3: AUTOLOAD for variables?
by dragonchild (Archbishop) on Jul 08, 2004 at 13:22 UTC
    Create an API. Create a set of expected standards. Give your users 3-6 months to comply with those standards, then issue the smack-down. Period. You can't do everything for everyone.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (16)
As of 2015-07-01 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (12 votes), past polls