in reply to System call problem

Try chomp
this remove the last character of a string, if it's a newline.
this work also for an array ( processing each entry ).
Becarefull, this function return true or false ( newline or not ) ! not the modified line.
so
my $date = chomp( `date ...` );
will not return what you want, but
chomp( my $date = `date ...` );
does.
______________________
Hope this helps