Re: logical barred ?



hi,

Am Montag, den 11.10.2004, 17:44 +0200 schrieb Rafael Garcia-Suarez:
On Mon, 11 Oct 2004 11:36:21 +0200, Oliver Grawert
<hostmaster grawert net> wrote:
hi,

could someone give me a hint why the following code doesn't work:

----snip----
push(@tmp, (shift(@tmp)." => 'text'")) foreach(@tmp);

You shouldn't modify the array you're iterating on.
i think in this case it's only a prob if the array is empty, i'm just 
looping the elements through the array, but you are right, 
it's not essential beautiful :)


ciao
        oli


-- 
got ubuntu ? --------------> GET UBUNTU !!!
http://www.ubuntulinux.org/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]