On Tue, 18 Apr 2000 [EMAIL PROTECTED] wrote: > On Mon, Apr 17, 2000 at 01:33:08PM -0600, Jason Terry wrote: > > This is the first i have seen "delete" referenced. What does it do? How is it >used? > > > > Thank you > > -Jason > > It's the stack cleaner... but it only works for scalars, and maybe > arrays, but its better for arrays and hashes to do the following at > the bottom of each code block in registry scripts. (True good note) > > @somearray = (); > %somehash =(); > delete $somescalar; > (and don't forget untie :-> ) > > Basically it will clean up *most* of the memory taken up by these > variables. Ouch - maybe you should read a perl book before trying to re-implement mod_perl more efficiently ;-) >From "perldoc -f delete": =item delete EXPR Deletes the specified key(s) and their associated values from a hash. ... -- <Matt/> Fastnet Software Ltd. High Performance Web Specialists Providing mod_perl, XML, Sybase and Oracle solutions Email for training and consultancy availability. http://sergeant.org http://xml.sergeant.org
- Re: Modperl/Apache deficiencies... Memo... Matt Sergeant
- Re: Modperl/Apache deficiencies... Memory u... shane
- Re: Modperl/Apache deficiencies... Memo... Perrin Harkins
- Re: Modperl/Apache deficiencies... Memo... shane
- Re: Modperl/Apache deficiencies... Memo... Jim Winstead
- Re: Modperl/Apache deficiencies... Memo... shane
- Re: Modperl/Apache deficiencies... Memo... shane
- Re: Modperl/Apache deficiencies... Memo... Jason Terry
- Re: Modperl/Apache deficiencies... Memo... shane
- Re: Modperl/Apache deficiencies... Memo... Ken Williams
- Re: Modperl/Apache deficiencies... Memo... Matt Sergeant
- Re: Modperl/Apache deficiencies... Memo... Jim Winstead
- Re: Modperl/Apache deficiencies... Memo... Perrin Harkins
- Re: Modperl/Apache deficiencies... Memo... Autarch
- Re: Modperl/Apache deficiencies... Memo... Doug MacEachern
- Re: Modperl/Apache deficiencies... Memo... Gunther Birznieks
- Apache::AuthCookie or Apache::AuthDBI or Ap... Kenneth Frankel
- Re: Apache::AuthCookie or Apache::AuthD... Vivek Khera
- Re: Modperl/Apache deficiencies... Memory usage. Gunther Birznieks
- RE: Modperl/Apache deficiencies... Memory usage. Jeff Stuart
- RE: Modperl/Apache deficiencies... Memory usage. Gunther Birznieks