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

Re^2: Never, never, never

by Roy Johnson (Monsignor)
on Apr 22, 2005 at 22:27 UTC ( #450605=note: print w/ replies, xml ) Need Help??


in reply to Re: Never, never, never
in thread Never, never, never

Actually, you can hit the symbol table directly, so you never need to use symbolic references per se. Of course, as long as you're aware that you're going into the symbol table, and it's the Right Thing To Do, there's no reason not to use the sym refs.


Caution: Contents may have been coded under pressure.


Comment on Re^2: Never, never, never
Re^3: Never, never, never
by theorbtwo (Prior) on Apr 22, 2005 at 22:32 UTC

    Eh, there's a moral equivlency there. $Package::{'bar'} is a symref just as much as ${'$bar'}, even if one violates use strict 'refs'; and the other does not, I'd say. (But I think there's a good argument the other direction as well.)


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-12-29 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls