Re: Clearing Arrays
From: Rob Dixon (rob_at_dixon.port995.com)
Date: 01/12/04
- Next message: Bob Smith: "oo perl"
- Previous message: Support: "Clearing Arrays"
- In reply to: Support: "Clearing Arrays"
- Next in thread: Ramprasad A Padmanabhan: "Re: Clearing Arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org Date: Mon, 12 Jan 2004 09:33:48 -0000
Colin (Support) wrote:
>
> I have this little memory blockage again.
> If I 'push' data from a database into an array to look/manipulate the data
> and then using the same array name, 'push' data into the array from another
> database, the data from the second DB file is added to the data of the
> first. How can I clear the first lot of data and start a fresh with an
> empty array ??
Hi Colin.
Use
@array = ();
or
undef @array;
(I like the easy ones!)
Cheers,
Rob
- Next message: Bob Smith: "oo perl"
- Previous message: Support: "Clearing Arrays"
- In reply to: Support: "Clearing Arrays"
- Next in thread: Ramprasad A Padmanabhan: "Re: Clearing Arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|