in reply to TIMTOWTDI/golf - counting backwards
UPDATE: I had blindly followed the example and used the \cJ when in fact it was just a \n. Also gmax pointed out that my first example could be shorten by moving the while statement. So here is a revised entry:$c=ord"\cJ";while($c){print$c--.$/}; $c=ord"\cJ";print$c--.$/for(a..j); for($c=ord"\cJ";$c;$c--){print$c.$/}; $c=ord"\cJ";map{print$c--.$/}(a..j);
$c=ord"\n";print$c--.$/while$c;
|
|---|