Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Sniffing binary data, heuristics?

by NetWallah (Abbot)
on May 25, 2004 at 20:03 UTC ( #356353=note: print w/replies, xml ) Need Help??


in reply to Sniffing binary data, heuristics?

How about using the tr operator to count non-printables. something like
if tr/a-zA-Z0-9!@#$%^&*()_+-={}[]|\\,./<>?:";'//cs > 0 { # Has non-printables.... }
Note: Concept tested, and works, - exact tr statement not tested.

Offense, like beauty, is in the eye of the beholder, and a fantasy.
By guaranteeing freedom of expression, the First Amendment also guarntees offense.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://356353]
help
Chatterbox?
[LanX]: Bishop LanX starts singing: ♪..♫ I want it all ...♩..♬
LanX ♪..♫ ...and I want it now!!! ♩..♬

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-09-20 15:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (237 votes). Check out past polls.

    Notices?