Re: Removing entries from an array

2003-06-20 Thread Paul Archer
> > (at > > least I think so) locations in the file, a random tip is displayed. Once > > it > > is, it has to be marked as used. Currently, I'm doing this: > > > > # Tip is done; remove it > > $tips[$tip_num] = $tips[$num_tips - 1]; > > undef $tips[$num_tips - 1]; > >

RE: Removing entries from an array

2003-06-20 Thread Gupta, Sharad
o node `perlfunc'. Am I missing something? perldoc is not a function but a utility. try "perldoc perldoc". -Sharad -Original Message- From: Abhijit Shylanath [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 11:33 AM To: Dan Muey Cc: Perl Beginners Subject: RE: Removing ent

RE: Removing entries from an array

2003-06-20 Thread Abhijit Shylanath
> Well you could actually put them in a hash with a number as the key and > the tip as th evalue then undefine the value of a key once it's used. Won't that be an unnecesary waste of memory and clock cycles? How efficient are the Perl hashing routines anyway? > my $random_key = ( keys %tips )[ r

RE: Removing entries from an array

2003-06-20 Thread Charles K. Clarkson
Abhijit, http://www.perldoc.com/ As an experienced programmer, you will already know what you want to do most of the time. You might want to look at the Perl Functions by Category section of perlfunc. Perldoc.com allows you to search for this file by version. Perl version 5.8.0: ht

Re: Removing entries from an array

2003-06-20 Thread Paul Johnson
Abhijit Shylanath said: > Greets, all. This is my first post here... I'm a seasoned C/C++ > programmer, > and recently started learning perl... it's going along well, and as an > exercise, I've completely Perl'ed my webpage. I'm still a little dizzy > because of the different directions it's pull

RE: Removing entries from an array

2003-06-19 Thread Dan Muey
> Greets, all. This is my first post here... I'm a seasoned > C/C++ programmer, and recently started learning perl... it's > going along well, and as an exercise, I've completely Perl'ed > my webpage. I'm still a little dizzy because of the different Howdy, cool, you'll love perl a lot there's

Re: Removing entries from an array

2003-06-19 Thread Casey West
It was Friday, June 20, 2003 when Abhijit Shylanath took the soap box, saying: : : Greets, all. This is my first post here... I'm a seasoned C/C++ programmer, : and recently started learning perl... it's going along well, and as an : exercise, I've completely Perl'ed my webpage. I'm still a little

Removing entries from an array

2003-06-19 Thread Abhijit Shylanath
Greets, all. This is my first post here... I'm a seasoned C/C++ programmer, and recently started learning perl... it's going along well, and as an exercise, I've completely Perl'ed my webpage. I'm still a little dizzy because of the different directions it's pulling me towards, but it's fun anyway