in reply to Re: a little bit tricky...
in thread Help needed with loop counters

the errors are just on the two lines i specified, something to do with the >= symbols. In the shell script i am just using the command
perl ./file.name arg1 arg2
this works perfect from a shell script on its own, but not when the command is embedded between other commands in the shell script.