in reply to System call problem

Use chop() to cut off the last character, or chomp() to remove the trailing 'record seperator' (which normally is the "\n", but could be something else on other platforms.

hth,

Jouke Visser, Perl 'Adept'