Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Some Weird Probelm (boo)

by Spenser (Friar)
on Dec 12, 2001 at 10:24 UTC ( [id://131180]=note: print w/replies, xml ) Need Help??


in reply to Re: Some Weird Probelm (boo)
in thread Some Weird Probelm

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://131180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-29 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found