in reply to Re: matching characters
in thread matching characters

If one removes the checking of the field names, one can write this also in a more concise way. TIMTOWDY!

my @issues; while (<DATA>) { push @issues, { Id => $1 } if /^ISSUE\s+(\w{5}\d+)$/; $issues[-1]->{$1} = $2 if /^(\w+)\s*:\s+(.+)$/ } dd \@issues;

Replies are listed 'Best First'.
Re^3: matching characters
by shylaja (Initiate) on Sep 04, 2014 at 07:02 UTC

    Thanks all for your replies.