While you're looking up "my", look up 'use strict'. It'll be much easier on you if you get used to using it now than if you have to go back over all of your old scripts.
-----Original Message----- From: Wytch [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 3:26 AM To: [EMAIL PROTECTED] Subject: Re: random word from array "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > That's correct, but if you have a very very very old Perl, you'll need > to add "srand;" at the beginning of your program. Do it just once, > though. That was one of the first things I tried - but I think my Perl is pretty up to date [I only downloaded it the day before yesterday....lol] anyhoo - it didn't make any difference. > The normal idiom is: > > my $one_of_many = $many[rand @many]; I keep seeing this "my $var" hmmm .... I understand what it is but not really when to use it and when not - *decides to go do some reading up on *my* and experiment* Wytch -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]