Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You shouldn't add or remove elements from an array you are looping over with foreach. Fortunately, you aren't actually using the loop variable $_; even so, you will be accidentally skipping over the element after one you've spliced away, since it will move into the $count position just as you move on to look at $count+1.
Instead, do:
-- A math joke: r = | |csc(θ)|+|sec(θ)|-||csc(θ)|-|sec(θ)|| | Online Fortune Cookie Search Office Space merchandise In reply to Re: Regex Confusion
by ysth
|
|