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
Installing a Perl Module - Jan 13, 2015
Rest and Json links to keep around - Oct 10, 2013
Perl and OAuth - Dec 03, 2013
Add HTML Scrubber to Junco - Oct 01, 2013
Perl and Curl - Mar 23, 2015
more >>