|Welcome to the Monastery|
On-the-fly hashrefby oko1 (Deacon)
|on Sep 28, 2010 at 16:39 UTC||Need Help??|
oko1 has asked for the wisdom of the Perl Monks concerning the following question:
My brain does not seem to be working well today; seems like I should be able to do this, but I can't come up with an answer - or even tell if it's possible. I'd appreciate it if the brilliant Monks here could stand in for some of my cerebral capacity... :)
Situation: take a typical hash slice; make an href out of it.
So far, so good. My question is, given the two lists above, how would you create $x without those other temporary variables? I've been fiddling with things like
and their ilk for a while, and am not getting it. Help would be appreciated!
[ Oh - and - no, this isn't some critical necessity; it's just me, always trying to learn more about Perl idiom. ]
"Language shapes the way we think, and determines what we can think about."
-- B. L. Whorf