Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Newbie to PERL removing text from arrayby Erez (Priest) |
on Feb 14, 2012 at 12:19 UTC ( [id://953693]=note: print w/replies, xml ) | Need Help?? |
This mainly depends on the file format. If you can be 100% sure that this, and only this is the way lines will be presented, then you can do the following:
Otherwise, you'll need to do a foreach on each of @split's elements, match them to a pattern and use those that you need. Principle of Least Astonishment: Any language that doesn’t occasionally surprise the novice will pay for it by continually surprising the expert
In Section
Seekers of Perl Wisdom
|
|