TheGenius22
MIS
Hello all,
I have an array called @list. I want to remove certain elements from this array like so.
foreach (@list) {
if (/windss\/comp/i) {
pop @list # troubles with this here
}
}
Im not sure if pop is the way to go. I dont want to just undef the element. I just want to remove the element if the condition is true. Help is needed.
thanks in advnace
I have an array called @list. I want to remove certain elements from this array like so.
foreach (@list) {
if (/windss\/comp/i) {
pop @list # troubles with this here
}
}
Im not sure if pop is the way to go. I dont want to just undef the element. I just want to remove the element if the condition is true. Help is needed.
thanks in advnace