We don't bite newbies here... much | |
PerlMonks |
Re^3: How Perl decides where a variable ends and text starts: Match variables in string interpolationby davido (Cardinal) |
on Jul 23, 2021 at 17:02 UTC ( [id://11135348]=note: print w/replies, xml ) | Need Help?? |
There are symbolic refs, but you have to stay in the symbolic ref world. If you create ${'1_'} as a symbolic reference, you have to continue to refer to it symbolically only. Perl barfs if you try to use it as $1_ later on. Here's a working example, though:
If you go on to dump the %main:: hash you'll see the package global $1_ does exist. Perl's syntax just doesn't support it as anything but a symbolic ref, I think. Dave
In Section
Seekers of Perl Wisdom
|
|