This global works great at producing random characters:
sub {
my @random = (0 .. 9, 'a' .. 'z', 'A' .. 'Z');
my $rand = '';
for (1 .. 8) {
$rand .= $random[rand @random];
}
return $rand;
}
<%random%>
But what if you wanted to produce a string of text set in the global itself like:
ford cars
triumph bikes
daf trucks
- then the global chose anyone of these to return.
any ideas?
--------------------------------
Privacy Software
sub {
my @random = (0 .. 9, 'a' .. 'z', 'A' .. 'Z');
my $rand = '';
for (1 .. 8) {
$rand .= $random[rand @random];
}
return $rand;
}
<%random%>
But what if you wanted to produce a string of text set in the global itself like:
ford cars
triumph bikes
daf trucks
- then the global chose anyone of these to return.
any ideas?
--------------------------------
Privacy Software