in reply to Compile error for the perl code

BTW, good form when posting is to use the <code> and </code> tags around your Perl.