Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Randomizing BBCode

Name: Anonymous 2011-08-09 9:58

https://gist.github.com/1132093

How can I improve this?

WARNING: FIOC

Name: Anonymous 2011-08-09 11:59

Warning: Valid Perl code

use strict;
use warnings;
my @bbcodes = ( "u", "o", "sup", "sub", "s", "i", "b", "code" );
my @chars = split(//, $ARGV[0]);
foreach (@chars) {
  print &fibrs($_);
}
print "\n";

sub fibrs {
  my $elem = $bbcodes[rand @bbcodes];
  my $composed = "[" . $elem . "]" . $_[0] . "[/" . $elem . "]";
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List