Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Hex string search all files in directory

by LanX (Saint)
on Dec 03, 2012 at 21:03 UTC ( [id://1006951]=note: print w/replies, xml ) Need Help??


in reply to Hex string search all files in directory

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/?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1006951]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found