in reply to Re: General Question on parsing a variable
in thread General Question on parsing a variable

http://scsys.co.uk:8002/228600

I have many entries like the ones presented stored in a variable $var I only want to print the entries that have stockStatus = In stock or stockStatus = Limited Stock ignoring case though on the match so i know /i and a multiline match

  • Comment on Re^2: General Question on parsing a variable

Replies are listed 'Best First'.
Re^3: General Question on parsing a variable
by Athanasius (Archbishop) on Feb 07, 2013 at 16:55 UTC

    It seems each record now ends with a blank line, rather than the word “end” as in the OP. And each record is a collection of lines of the form key = value. So we add another loop, and create a hash in which each key is the storeId (as before), but each value is a (reference to a) nested hash of key/value pairs:

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,