in reply to Removing similar characters
use String::Random ; my $generator = new String::Random ; my $invalid_pass_re = qr/(\d{3}|\w{3}|[[:punct:]]{3})/ ; my $pass ; do { $pass = $generator->randregex('.{15}') ; } while ($pass =~ $invalid_pass_re) ; print "$pass\n" ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Removing similar characters
by Kc12349 (Monk) on Sep 01, 2011 at 19:29 UTC | |
by onelesd (Pilgrim) on Sep 01, 2011 at 21:46 UTC | |
by rspishock (Monk) on Sep 01, 2011 at 22:46 UTC | |
by onelesd (Pilgrim) on Sep 01, 2011 at 22:56 UTC | |
by Kc12349 (Monk) on Sep 02, 2011 at 12:54 UTC |