Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Some Weird Probelm (boo)

by boo_radley (Parson)
on Dec 11, 2001 at 19:39 UTC ( [id://130947]=note: print w/replies, xml ) Need Help??


in reply to Some Weird Probelm

It seems you may also be interested in String::Random. Here's a CPAN Mirror as CPAN seems to be quite balky today.

Replies are listed 'Best First'.
Re: Some Weird Probelm (boo)
by Spenser (Friar) on Dec 12, 2001 at 10:24 UTC

    How about skipping the openning of the external file and just doing something simple like this:

    #!/usr/bin/perl -w use strict; # Make declarations of variables. my @alpha = ('a'..'z', 'A'..'Z'); my @numeric = (0 .. 9); my ($a_pwd0, $a_pwd1, $a_pwd2, $a_pwd3, $n_pwd0, $n_pwd1); # Choose random letters and numbers for each string. $a_pwd0 = $alpha[int rand @alpha]; $a_pwd1 = $alpha[int rand @alpha]; $a_pwd2 = $alpha[int rand @alpha]; $a_pwd3 = $alpha[int rand @alpha]; $n_pwd0 = $numeric[int rand @numeric]; $n_pwd1 = $numeric[int rand @numeric]; # Print password: print "\n\n", "Your password is: ", $a_pwd0,$n_pwd0,$n_pwd1,$a_pwd1, $a_pwd2,$a_pwd3, "\n\n"; exit;

Log In?
Username:
Password:

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

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

    No recent polls found