owner@owner-desktop:~/PERL-LAB$ perl temp.pl syntax error at temp.pl line 5, near "){" syntax error at temp.pl line 10, near "){" syntax error at temp.pl line 14, near "}" Execution of temp.pl aborted due to compilation errors. owner@owner-desktop:~/PERL-LAB$

I guess it is something simple, but I'm a bit rusty with perl right now and I can't see it. This is my first time programming with given/when also. Any help would be greatly appreciated and then I can move on and program a MS Word Killer! Paul

owner@owner-desktop:~/PERL-LAB$ perl temp.pl syntax error at temp.pl line 5, near "){" syntax error at temp.pl line 10, near "}" syntax error at temp.pl line 15, near "}" Execution of temp.pl aborted due to compilation errors. owner@owner-desktop:~/PERL-LAB$