in reply to Re^3: Fun with words (Golf?)
in thread Fun with words (Golf?)

An alternative to split trims two of those chars.
perl -pe's!\B\w+\B!@s=$&=~/./g;my$s;$s.=splice@s,rand@s,1while@s;$s!eg +'

Caution: Contents may have been coded under pressure.

Replies are listed 'Best First'.
Re^5: Fun with words (Golf?)
by ysth (Canon) on Nov 10, 2005 at 08:52 UTC
    And trim 6 chars off the rival:
    perl -MList::Util=/./ -pe's:\B\w+\B:join"",shuffle $&=~/./g:ge'
    (update: changed this from using split too; thanks Roy_Johnson)