yeah, pop should work in this situation. also, a more general purpose tool would be splice:[tt]
splice(@lines, 0, 1);[/tt]
this would work to remove the 0th element of the array.
or
redefine the array with array slices:[tt]
@lines = @lines[1..scalar(@lines)];[/tt]
this will also remove the 0th element of the array.
stillflame "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.