Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: hash of hashes

by Laurent_R (Abbot)
on Oct 05, 2013 at 10:03 UTC ( #1057018=note: print w/replies, xml ) Need Help??


in reply to Re: hash of hashes
in thread hash of hashes

Or, perhaps a simpler alternative demonstrated under the Perl debugger:

DB<1> @x = qw{X A B}; DB<2> $x = shift @x; DB<3> print map {" $_ $x,"} @x; A X, B X,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1057018]
help
Chatterbox?
[Corion]: Yeah, you need bool to get a true value, and the rest to return the other value ;)
[choroba]: perl -wE '{package o; use Tie::Scalar; use parent -norequire => "Tie::StdScalar" ;sub FETCH { "x" x int rand 2}} tie my $x, "o" ; say $x for 1 .. 10'
[choroba]: for complete ness

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2017-07-27 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (414 votes). Check out past polls.