Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Typeglob syntax arcanery

by Fletch (Chancellor)
on Mar 03, 2011 at 18:29 UTC ( #891276=note: print w/ replies, xml ) Need Help??


in reply to Typeglob syntax arcanery

Erm . . .

$ perl -le '$charlie::delta="foo";($a,$b,$c,$d)=qw( alpha beta charlie + delta ); *{"${a}::$b"} = *{"${c}::$d"};print $alpha::beta;' foo

Wrap with a surrounding block of no strict as needed. Not that it's probably not a good idea to begin with.

The cake is a lie.
The cake is a lie.
The cake is a lie.


Comment on Re: Typeglob syntax arcanery
Select or Download Code
Re^2: Typeglob syntax arcanery
by Anonymous Monk on Mar 03, 2011 at 18:34 UTC
    Ahh, thanks. Perfect.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://891276]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-07-03 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (49 votes), past polls