Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Scalar variable value is name of a scalar variable

by citromatik (Curate)
on Jul 01, 2009 at 08:48 UTC ( #776353=note: print w/replies, xml ) Need Help??


in reply to Scalar variable value is name of a scalar variable

Symbolic references are very useful in some situations, you just have to be aware of not introducing bugs in your code while using them.

Be aware that only package (global) variables are visible to symbolic references, and the use of global variables is error-prone.

Also, the use of symbolic references results in a warning, you have to use no warnings 'ref' to avoid it, so be sure to deactivate them only in the innermost block of code where the symbolic reference is used

That said, your code uses the symbolic reference on global variables and you are not using strict and you are not using warnings at all, so probably, you will not be bother by introducing a new error-prone feature

citromatik

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://776353]
help
Chatterbox?
[pryrt]: stevieb: going thru cblast to get caught up, I see that strawberry fixed their download hashes. Fast turnaround on that fix. :-)
[pryrt]: Are you going to tie the berrybrew expected hashes to their releases.json to keep it always up-to-date?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-03-30 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (357 votes). Check out past polls.