in reply to "Chop" problems

chop modifies its argument and returns the chopped character. Does your program print 'd'?

I'm assuming the html line breaks are a posting error and not present in your source.

Don't use $a or $b as a user variable, they are owned by sort.

After Compline,
Zaxo

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.