http://www.perlmonks.org?node_id=123562


in reply to Re: Re: Confused Beginner: searching and displaying information from a dat file
in thread Confused Beginner: searching and displaying information from a dat file

So you are already halfway. You just need to plough in a few online docs. Try (at the commandline) 'perldoc perlop', and perlre for searching/replacing, and 'perldoc perlrun' for nifty commandline switches -- be sure to look up -i and -p. Oh yeah, don't forget to read all about ARGV in perlvar.