Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: Create output from Perl hash

by gbwien (Acolyte)
on Feb 13, 2018 at 10:53 UTC ( #1209055=note: print w/replies, xml ) Need Help??

in reply to Re: Create output from Perl hash
in thread Create output from Perl hash

The input file contains a starting and ending string, so I am using a regular expression to extract group $2 which is what is between SUBBEGIN and SUBEND. I then split $2 based on the equals sign to create my hash %hash.Then within the while loop and using two separate if statements I use the hash function exists to check if key1 is in the %hash(first if statment) and if key2 is in the %hash (second if statement)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1209055]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2018-03-21 23:07 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (272 votes). Check out past polls.