You'll probably want to use regular expressions. Try
http://perl.about.com/compute/perl/library/weekly/aa0925
99.htm?REDIR_404=yes&
It's got some nice examples of the regexp syntax as well
as how to actually use regular expressions in your perl
script...
Kathryn.
Quoting Ross Lynch <kernel at esatclear.ie>:
> Hey,
>> Can anyone point me in the direction of some
information on parsing
> files with Perl. Like, I'd like to be able to extract
the meaningful
> stuff from a file which may be otherwise rhubarb. Even
some good
> examples would do. Online material for preference.
>> Thanks,
> Ross.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!