Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Variable Interpolation Interpolation

by dragonchild (Archbishop)
on Mar 20, 2002 at 19:15 UTC ( #153090=note: print w/replies, xml ) Need Help??


in reply to Variable Interpolation Interpolation

It's naughty to use symbolic refrences, but the way to do it is:
if ${"fromQuery::$f"};

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

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
Re: Re: Variable Interpolation Interpolation
by dpatrick (Scribe) on Mar 20, 2002 at 19:20 UTC
    Dragonchild, why is it naughty to use symbolic references?

    dpatrick
    - I think scsh is cool.
    Open Sourceror, Perlmonk
    http://perlmonk.org/~dpatrick
      Doing a search (which I'm too lazy to do) would yield some dozen or so threads on the matter.

      A quick answer is this - symbolic references directly impact the symbol table. This could result in clobbering a variable you already have. As this is completely dependent on run-time activity, debugging this could be complex.

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

      Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2023-05-31 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?