in reply to Re: subroutine..help
in thread subroutine..help

Just personal preference here, but I prefer to use "shift" instead of picking off arguments from @_, like this:
sub coor { my $c = shift; # get 1st argument my $d = shift; # get 2nd argument return ( $c + 109, $d + 5 ); }
And, the OP should use "use strict;" and either "-w" on the first perl line or "use warnings;".