in reply to key value pair or simply a regexp
I think you're going to have a problem with the
om=UID=3a7affd6-f420-11db-80b1-000000000000
as it contains two equals signs.
I'd do this:
my %h = map { ( split /=/, $_, 2 ) } split /,/;
Then you can stuff the data in %h into your HoA, or just
or whatever.print "$h{'msgagt'}\n" if exists $h{'msgagt'};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: key value pair or simply a regexp
by mikejones (Scribe) on May 18, 2007 at 19:46 UTC |