amit223 has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
I am parsing through a bunch of files where I looking for a number occurring after a specific two lines of text and the I need to grab a number and save it to an array. .
open (INF, "$file"); while (<INF>){ if(/First line of text[\n]second line of text[\n]in the third line + I have (\d*\.\d*)/) { push(@array,$1); } }
But it is not working, I tried using “m” after the string for multi-line parsing.
Can you suggest anything?? Thank you, Appreciate any help.
Back to
Seekers of Perl Wisdom