Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: variable with $$

by bart (Canon)
on Apr 08, 2004 at 10:56 UTC ( #343572=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %v;   # my hash for user variables
    $v{Sam}++; 
    # or:
    my $name = 'Sam';
    $v{$name}++;
    
  2. or download this
    my $var = \$sam;
    $$var++;  # increments $sam
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://343572]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-03-28 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (330 votes). Check out past polls.