Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: /^[^A-Za-z0-9 ]*$/

by ambrus (Abbot)
on Sep 30, 2005 at 08:16 UTC ( #496371=note: print w/replies, xml ) Need Help??


in reply to /^[^A-Za-z0-9 ]*$/

Very nice obfuscation. I definitely couldn't read anything from it when I looked at the source.

Here's a way to make it resistant against Deparse. (It still doesn't print the canonical comma, I'm lazy to do that.)

$;="+[^,}",$/=($;^'[>,@]')."-".(('^|*!]@~/*%*..*]]./[@;.^,^\,{@\?@;,"} +@`|')[$;]^';^]@/.^^[~`[]^}<@@/(^\~|;.@[(=\+^^~!.=^'),`$/`

Update: see also Re: my JaPh,.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://496371]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-11-19 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?