Tildes abused.
Surprised? Amused?
use strict; die'TILDE',@~; sub CHECK{@~=$~=~m~(.)~g,unshift@~, splice@~,2,3;unshift@~,pop@~,*{H},; push@~,*{PAR}=>;($~[$#{~}],$~[$#{~} +-1])=($~[$#{~}+-1].$/=>$~[$#{~}]); for(@{~}){s~.*:~~;s~$~ ~ if$?++%2}}
Update:Tiny change to fix problem on Windows...
Per request, commented version below. And actually, it was a BrowserUK post last Friday that got me reading perlvar and perlmod, so thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: TILDE COWS COME HOME?
by NateTut (Deacon) on Feb 24, 2009 at 20:49 UTC | |
by ikegami (Patriarch) on Feb 24, 2009 at 20:58 UTC | |
by NateTut (Deacon) on Feb 24, 2009 at 21:05 UTC | |
by Fletch (Bishop) on Feb 24, 2009 at 21:12 UTC | |
by NateTut (Deacon) on Feb 24, 2009 at 21:14 UTC |