Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Hex string search all files in directory

by bdalzell (Sexton)
on Dec 03, 2012 at 21:22 UTC ( [id://1006954]=note: print w/replies, xml ) Need Help??


in reply to Hex string search all files in directory

if you want to match all instances of "hello" wether it is "HELLO","Hello" or "hello" you should also change the line:
if ($hex_string =~ /\hello/)
to:
if (lc($hex_string)) =~ /\hello/)

Replies are listed 'Best First'.
Re^2: Hex string search all files in directory
by choroba (Cardinal) on Dec 04, 2012 at 09:17 UTC
    The more cannonical would be, in my opinion,
    if ($hex_string =~ /hello/i)
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-03-19 04:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found