From: "KEVIN ZEMBOWER" <[EMAIL PROTECTED]> > I'm trying to process a list like so: > foreach ("photoshare", "mmc", "popline", "popline/www", "popline/db", > "netlinks") {
The loop control variable (the variable through whichyou access the values in the array you loop over) is actualy an ALIAS to the list/array value, not a copy. This means that if you change the content of the variable you are changing the contents of the array. But of course this time the items of the array (well, actually list. It's better to distinguish the two ) are constants. Thus you cannot change them. Thus you canot assign to $_. you have to copy the value to a different variable first. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]