in reply to Re: Help extracting pattern of data
in thread Help extracting pattern of data
No, the reason I thought that I need not decode it is because from the json output, All I need to do is to get all occurances of the fields that I mentioned above (for example say "latestTime": and get its value from the entire file.
If decoding it would be more appropriate I am ok with that too.
I tried something naive but could you please help improvise
my $content = <_DATA_> #which i extract from a file, so I would give t +he file handle my $out = $content =~ m/ "latestTime": (.*) , /; print $out;
I was thinking I could extract the data like this but I am wrong. Kindly help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help extracting pattern of data
by davido (Cardinal) on Jan 27, 2014 at 04:04 UTC | |
by spikeinc (Acolyte) on Jan 27, 2014 at 04:21 UTC | |
by spikeinc (Acolyte) on Jan 27, 2014 at 04:39 UTC | |
by AnomalousMonk (Archbishop) on Jan 27, 2014 at 04:45 UTC | |
by spikeinc (Acolyte) on Jan 27, 2014 at 05:11 UTC | |
by spikeinc (Acolyte) on Jan 27, 2014 at 08:17 UTC | |
| |
|
Re^3: Help extracting pattern of data
by AnomalousMonk (Archbishop) on Jan 27, 2014 at 04:13 UTC |