Can someone help me get the correct regex for this string?
Total 14,928 3,967
I am trying to remove that line using this, but no luck:
shift @lines if $lines[0] =~ /^Total/;
Its also the last line of the output file.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you might consider instead is:
If it is always the last line:
-1is the last element in the array.Or, more simply, as ikegami pointed out: