Article View: news.software.nntp
Article #29153Re: Odd cleanfeed problem
From: Andrew Gierth
Date: Sun, 14 Jun 1998 00:00
Date: Sun, 14 Jun 1998 00:00
22 lines
1396 bytes
1396 bytes
>>>>> "?" == ? the platypus {aka David Formosa} <dformosa@st.nepean.uws.edu.au> writes:
>> Hmm. You do know that doing deletes inside a while(each %hash) loop is
>> definitely a no-no?
?> ]each HASH
?> ]
?> ][...] You must not add elements to the hash while iterating over it,
?> ]although you are permitted to use delete.
?> I think you have been missinformed.
From perldoc -f each
If you add or delete elements of a hash while you're
iterating over it, you may get entries skipped or duplicated, so don't.
--
Andrew.
Technical Details
Message-ID:
<87lnqzkfcw.fsf@erlenstar.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6lu4nq$i83$1@opal.southwind.net> <m3yav0ahzh.fsf@windlord.Stanford.EDU> <Mw.5elrd_jvo@fluffy.meow.org> <87zpfgl1b4.fsf@erlenstar.demon.co.uk> <897846749.943964@cabal>Show Full Headers
Complete Article Headers
Message-ID: <87lnqzkfcw.fsf@erlenstar.demon.co.uk> Subject: Re: Odd cleanfeed problem Date: Sun, 14 Jun 1998 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <6lu4nq$i83$1@opal.southwind.net> <m3yav0ahzh.fsf@windlord.Stanford.EDU> <Mw.5elrd_jvo@fluffy.meow.org> <87zpfgl1b4.fsf@erlenstar.demon.co.uk> <897846749.943964@cabal> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 362588549 X-Mayan-Date: Long count = 12.19.5.4.14; tzolkin = 2 Ix; haab = 7 Zotz Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 Newsgroups: news.software.nntp