aspose file tools
The moose likes Java in General and the fly likes what is Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "what is "$$" for in Perl?" Watch "what is "$$" for in Perl?" New topic
Author

what is "$$" for in Perl?

Allen Chan
Ranch Hand

Joined: Jun 07, 2002
Posts: 64
Hi all,
I know this is not the place, but what is "$$" for in perl, a line reads $str = "this" ."$$ADS{'name'}";
Thanks.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1865
hi Allan,
$varname is a value of variable with 'varname' right?
so $$varname is kind of pointer to a pointer thing in C you know..
first it will get value for $varname then it will apply another $ on that value which would mean value of a variable with name "value of varname"..
here is simple program i ran,

the output was,
maulin

regards
maulin.


1. Have fun @ http://faq.javaranch.com/java/JavaRaq
2. Looking for simple infix2postfix conversion and postfix evaluation package? Click here
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is "$$" for in Perl?
 
Similar Threads
Why Ruby?
Scalar Variable
Who love Perl here?
WA #1.....word association
Find & Replace strings/text in JSP's