Submit
Improve company productivity with a Business Account.Sign Up
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
We will never share this with anyone. Privacy Policy
Must be at least 4 characters long.
Join and Comment
By clicking you are agreeing to Experts Exchange's Terms of Use.
Be seen. Boost your question’s priority for more expert views and faster solutions
You have to shorten the array as fast as you make it longer than 5:
@a = (1,2,3,4,5,6,7);
$#a = 4; # @a = (1,2,3,4,5)
@a = (1, 2, 3, 4, 5, 6, 7); # Now are there 7 elements again.