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

Re: Re: Re: Crypt::GeneratePassword with no special characters

by bm (Hermit)
on Aug 21, 2003 at 13:57 UTC ( [id://285467]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Crypt::GeneratePassword with no special characters
in thread Crypt::GeneratePassword with no special characters

Yes, it looks like you are mis-interpreting.

If $set is given, it must be an array ref of characters to use

so this argument contains the list of chars to use, as opposed to not using. Perhaps you want:

$Password=chars(5,8,\('a'..'z'));
which should create a password between 5 and 8 chars in length, containing only lowercase chars from 'a' to 'z'.
Hope this helps
--
bm

Replies are listed 'Best First'.
Re: Re: Re: Re: Crypt::GeneratePassword with no special characters
by Mark2117 (Initiate) on Aug 21, 2003 at 18:34 UTC
    bm,

    Thank you! You were right. I was trying to the use the $characters restrict function. However, the set option was much more applicable.

    Thanks Again,
    Mark

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-28 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found