Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How can I use all special characters in perl

by ForgotPasswordAgain (Priest)
on Jul 04, 2019 at 14:54 UTC ( [id://11102407]=note: print w/replies, xml ) Need Help??


in reply to How can I use all special characters in perl

I see a few problems anyway:

  1. To check the length, there is a length function. No need to split it into an array.
  2. The \d and \w match more than you might think! As noted in perlrecharclass, "unless the /a modifier is in effect \d not only matches the digits '0' - '9', but also Arabic, Devanagari, and digits from other languages. This may cause some confusion, and some security issues".
  3. I doubt the order of type of characters matters, so you wouldn't want word characters followed digits, etc., but any of them in any order, so you'd use (as mentioned in other comments) a character class.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-26 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found