in reply to A split ing headache
and you will be able to see what was split and joined. Then compare with what it says in split.$line = join "|", split /:/, $string, $count;
When I do it it works just like the big old book says.
BTW you might find the following string more instructive than your current one:
$string = 'a:b:c:::';
|
|---|