go ahead... be a heretic | |
PerlMonks |
perl regular expressionsby iamsachin (Initiate) |
on Jun 23, 2014 at 21:18 UTC ( [id://1090967]=perlquestion: print w/replies, xml ) | Need Help?? |
iamsachin has asked for the wisdom of the Perl Monks concerning the following question: Hello, I'm new to perl. I searched online,reffered to a couple of links and i have written a perl script to match multiple sting in a file. this is the file : { 'testing' => { link => "http://www.espn.com",, bandwidth => "100", r => "2", }, };10 15 * * * cd /tmp; /path/to/file --timeslot 'name' Now,I need to write a perl script that matches the string in the file.
The above script searches the file for string "testing" in the file and fails if the string is not found. Now I'd like to search multiple strings in that file like bandwidth,rate. I guess i need to use regular expressions.But i'm not sure how to implement it. any suggestions.
Back to
Seekers of Perl Wisdom
|
|