How do I use split in Perl?

jay28lee used Ask the Experts™
print "total: $total, count: $count";

the above code is giving me:

total: 1, count: 2

shouldn't it be:

total: 1269, count: 166

instead?  i couldn't find out what's wrong?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Split pattern is a regular expression abd "|" symbol is special. Escape it with backslash.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial