I have a reference to an annonymous array, which I am looping through with
foreach(@$servref) { if ( checkServer($_, $dn) ) { push(@$goodservref, $_); } else { # server wasn't good. Add another item to the list push(@$servref, newitem); } } Based on certain criteria, I want to add a new item to the end of the $servref array. Is it safe to do this inside the foreach loop? If not, what would be a better solution? -- I'm nerdy in the extreme and whiter than sour cream -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>