Perl code to create random string of characters
mixed-case, alphanumeric, 8 chars long
http://www.perlmonks.org/?node_id=233023
#!/usr/bin/perl -wT
use strict;
my @chars = ("A".."Z", "a".."z", "0" .. "9");
my $string;
$string .= $chars[rand @chars] for 1..8;
print $string . "\n";
From JR's : articles
32 words - 250 chars
created on
updated on
- #
source
- versions
Related articles
Perl Dancer Framework - Dec 19, 2013
Perl HTML parsing modules - Oct 01, 2013
Perl code for string processing - Jul 06, 2013
Veery Blog App - April 2015 - Aug 03, 2015
Perl conditional loading modules - Oct 02, 2014
more >>