Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^6: hex numbers

by shmem (Chancellor)
on Jan 14, 2021 at 19:58 UTC ( [id://11126929]=note: print w/replies, xml ) Need Help??


in reply to Re^5: hex numbers
in thread hex numbers

And of course code which assumes that the string can only ever contain hex digits is an exploit waiting to happen.

Code which doesn't assume the type of content of a variable but contains a string constant is only exploitable by editing the source file and munging the constant.

See my answer to davido below.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found