in reply to Searching in binary files
You could do this:
local $/ = "find this string"; while (<FILE>) { if ( chomp ) { # you know you found an occurrence } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Searching in binary files
by graff (Chancellor) on Dec 15, 2005 at 06:47 UTC | |
Re^2: Searching in binary files
by crenz (Priest) on Dec 15, 2005 at 07:45 UTC |