Don't ask to ask, just ask | |
PerlMonks |
Re: Hex string search all files in directoryby LanX (Saint) |
on Dec 03, 2012 at 21:03 UTC ( [id://1006951]=note: print w/replies, xml ) | Need Help?? |
I think you are overwriting the results for each file, "test.txt" is just the last one in the alphabet. What happens if you change open (HEX_OUT, ">>", $hex_out") or die "$!"; to append instead of overwriting? Or even better you move it before the loop? Why don't you use warnings? BTW: proper indentation would facilitate reading your code =)
Cheers Rolf PS:why do you escape the h in /\hello/?
In Section
Seekers of Perl Wisdom
|
|