in reply to Finding a pattern in a string
What do you intend:
my $string = join '', map $chars rand @chars , 1 .. 100; [download]
to do?
I personally believe that due to the OP's failing to put his code in <code> tags, it rendered like that, but it's fairly obvious that he wrote and meant
my $string = join '', map $chars[rand @chars], 1 .. 100; [download]
In doubt, check the xml source of the post.