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: ᴍʀ. ᴠɪʟᴇ !PRoGN.piPE 2011-08-11 23:05


map {$\=$_;@_=qw(u o sup sub s i b);map{$\="[$_]$\\[/$_]"}splice@_,rand@_,1while@_;print''}split//,<>;


102 chars, unfortunately this version will randomly order the bbcode 8 times, not a random amount from 1 to 8

(still strict-compatible)

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