Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Variable Scoping in Perl: the basicsby Aristotle (Chancellor) |
on Dec 24, 2004 at 01:50 UTC ( [id://417232]=note: print w/replies, xml ) | Need Help?? |
Try
The apostrophe is the old-style package separator, still supported, so $name's is indeed equivalent to $name::s. By putting the curlies in there, you tell Perl exactly which part of the string to consider part of the variable name, and which part to consider a literal value. Makeshifts last the longest.
In Section
Tutorials
|
|