Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Using a varabile contained within another variable?

by lemming (Priest)
on Sep 21, 2001 at 10:03 UTC ( #113810=note: print w/ replies, xml ) Need Help??


in reply to Using a varabile contained within another variable?

Here's one way

my $x = 1; my $y = '$x'; eval "$y++"; print $x, "\n"; # Output == 2


Comment on Re: Using a varabile contained within another variable?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-08-01 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (27 votes), past polls