http://qs321.pair.com?node_id=339548


in reply to Re: output of dumper
in thread regex issue

First off $9YT isn't a valid valiable name

It is if you do enough tricks.

$ perl -MData::Dumper -le '$f = "9YT"; $$f = "foo"; print Data::Dumper +::Dumper(\%main::)' $VAR1 = { # snip '9YT' => *{'::9YT'}, # snip };

With symbol table lookups and symbolic refs, pretty much anything is possible in a Perl variable name. I don't know of a way to get lexicals to do this, though.

----
: () { :|:& };:

Note: All code is untested, unless otherwise stated