Your 2nd assignment to the $count variable clobbers the 1st ($count++).$count++; @z =split('', $line); $count = @z;
You should show the data values you input as well as the output you want. That way it will be clearer to us what you are trying to accomplish. Also, use strict and warnings.
In reply to Re: having trouble with count
by toolic
in thread having trouble with count
by bjohn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |