Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Recreating hash

by kitkit201 (Initiate)
on Sep 12, 2012 at 23:50 UTC ( #993331=note: print w/replies, xml ) Need Help??

in reply to Recreating hash

Thanks for the help guys! That made a lot of sense I am slowly learning syntax for perl. So now my question has evolved to.. I want to compare array hash strings. Specifically I want to do something like this, where i am comparing the $hash{alerts}[0]{status_history}{status} string to a string of them. (The english translation is, I want to compare that status_history,status strings of 1's. If there are at least 6 ones in the front of the arry, do stuff)
if ($hash{alerts}[0]{status_history}{status} =~ /1,1,1,1,1,1/) { do cool stuff }
Is that correct>?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2016-10-28 11:31 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (381 votes). Check out past polls.