File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes what is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
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: 1871
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is "$$" for in Perl?
 
Similar Threads
Scalar Variable
WA #1.....word association
Why Ruby?
Who love Perl here?
Find & Replace strings/text in JSP's