If this is just for your own learning experience then do take a look at character classes as other monks have already advised.
However, if you intend to use this in production then please leverage the experience of others and consider something like Password::Policy instead.
In reply to Re: How can I use all special characters in perl
by hippo
in thread How can I use all special characters in perl
by Ekanvitha9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |