Link to home
Create AccountLog in
Avatar of jay28lee
jay28lee

asked on

How do I use split in Perl?

($total,$count)=split('|','1269|166');
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?
ASKER CERTIFIED SOLUTION
Avatar of moonsd
moonsd
Flag of Kazakhstan image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer