in reply to Re: Print out random words with HTML
in thread Print out random words with HTML
does it.$array = $array[ rand @array ]; $array2 = $array2[ rand @array2 ];
#!/usr/bin/perl #use strict; my @array = ('words', 'will', 'go', 'here'); my @array2 = ('words2', 'will2', 'go2', 'here2'); $array = "$array[rand@array]"; $array2 = $array2[rand@array2]; { print "Content-Type: text/html\n\n"; print <<EOM; <H1>$array</H1> <HR> <H1>$array2</H1> EOM exit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Print out random words with HTML
by Athanasius (Archbishop) on Oct 12, 2016 at 05:19 UTC |