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?
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.