theleftright has asked for the wisdom of the Perl Monks concerning the following question:
Howdy everyone and merry perlmass!
blah.txt contains the following data:
more junkjunk junk junk junk start not junk not junk end junk junk
now how would i extract only:open (hFile, "blah.txt"); @d = <hFile>; close hFile;
from that array? thanks all :) I have looked around, all i can find is how to do this on a string, but then i risk loosing all the nowlines. p.s: would be better if this was possible in 1 linestart not junk not junk end
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: extract range from array of data
by BrowserUk (Patriarch) on Dec 26, 2015 at 12:04 UTC | |
by QuillMeantTen (Friar) on Dec 26, 2015 at 12:45 UTC | |
by theleftright (Novice) on Dec 26, 2015 at 13:06 UTC | |
Re: extract range from array of data
by QuillMeantTen (Friar) on Dec 26, 2015 at 12:44 UTC | |
by AnomalousMonk (Archbishop) on Dec 26, 2015 at 21:57 UTC |
Back to
Seekers of Perl Wisdom