in reply to Bring You Own Code The Disgruntled Bomb

Some that comes to my mind:

Setting the array start to 1 instead of 0:
$[ = 1;

and, making rand always print the same sequence:
srand 0;

Replies are listed 'Best First'.
Re^2: Bring You Own Code The Disgruntled Bomb
by Tux (Canon) on Apr 14, 2011 at 14:32 UTC

    Evil :)

    The first has been deprecated and issues warnings in 5.12:

    $ perl -wE'say$[;$[=3;say$[' Use of assignment to $[ is deprecated at -e line 1. 0 3

    The srand one is funny.


    Enjoy, Have FUN! H.Merijn
      The first has been deprecated and issues warnings in 5.12
      oh that's good to know, I'm still using 5.10 so I didn't knew that.