in reply to Re: Infinite regex loop...
in thread Infinite regex loop...

The file is a list. SPECint_base and SPECfp_base are headers. When it finds one or the other, its respective valid variable becomes true. It should not store the header in its respective hash. When it loops through, unless $_ is one of the headers, it should be put in whichever hash.

Replies are listed 'Best First'.
Re^3: Infinite regex loop...
by wind (Priest) on Jun 29, 2011 at 21:43 UTC

    I might understand what you want, but try making an example. Show us a fake data file in the format that your using and then state what should be the resultant data structures after processing.

    I know what I mean. Why don't you?