What do you actually want to do? Check that the string exists? Count the number of occurences? Find a string that matches some pattern? Find a prefix string and extract some trailing text?
A neat way to perform some of those searches is:
local $/ = "the string to match"; while (<fileHandle>) { #do stuff with the "line" in $_ #chomp will remove "the string to match"; }
In reply to Re: Searching in binary files
by GrandFather
in thread Searching in binary files
by crenz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |