First let me post my code
Code:
#!/usr/bin/perl
my $name;
my @charset = (('A'..'Z'), ('a'..'z'));
my $range = $#charset + 1;
print "Enter the limit\n";
$lim = <STDIN>;
until ($lim == 0){
for (1..8) {
$name .= $charset[int(rand($range))];
}
print "$name\n";
$lim = $lim - 1;
}
My problem is I dont want it to generate the way it is doing now.
here is the output if i give limit as 6
PeTFDyCo
PeTFDyCotpeZftCG
PeTFDyCotpeZftCGCztEldLf
PeTFDyCotpeZftCGCztEldLfdULnsqvx
PeTFDyCotpeZftCGCztEldLfdULnsqvxhYNMboqM
PeTFDyCotpeZftCGCztEldLfdULnsqvxhYNMboqMXIDiwnOw
Here it generates 6 names, but I have two issues here
1) I dont want the previous name to be appended(prefix) to the next name
2) I want all the names to be of same length
Please help me. Thank you.

