Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Bring You Own Code The Disgruntled Bomb

by Fox (Pilgrim)
on Apr 14, 2011 at 14:13 UTC ( [id://899439]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://899439]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (1)
As of 2024-04-24 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found