webadept has asked for the wisdom of the Perl Monks concerning the following question:
To solve this I used $#array= -1; and that solved the problem with no more bugs. I needed asprin from pounding my head on the desk, but the program worked and that's what's important.
I've checked many sources and all of them give my first method as the proper means of clearing an array of all values. I'm just wondering if anyone else has had issues with this, or hopfully to save someone else the headache of my little discovery
webadept
Edit by tye
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Clearing Array Values
by wog (Curate) on Feb 09, 2002 at 05:10 UTC | |
by Anonymous Monk on Feb 09, 2002 at 06:22 UTC | |
by rchiav (Deacon) on Feb 09, 2002 at 07:17 UTC | |
by rdfield (Priest) on Feb 09, 2002 at 09:24 UTC | |
by wog (Curate) on Feb 09, 2002 at 14:31 UTC | |
by Anonymous Monk on Feb 10, 2002 at 03:53 UTC | |
Re: Clearing Array Values
by screamingeagle (Curate) on Feb 09, 2002 at 05:11 UTC | |
Re: Clearing Array Values
by Parham (Friar) on Feb 09, 2002 at 13:38 UTC |