Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: How to generate random sequence of UTF-8 characters

by Lotus1 (Deacon)
on Dec 20, 2012 at 20:28 UTC ( #1009793=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @chars = ( 0..9,'a'..'z','A'..'Z' );
    print @chars;
    
    __DATA__
    0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
    
  2. or download this
    my $string = join '',0..9,'a'..'z';
    $string =~ s/([a-z])/$1\u$1/g;
    print $string;
    
    __DATA__
    0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2016-09-25 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (473 votes). Check out past polls.