+1  A: 

In your Mytest.xs remove the whitespace in front of hello();

Update: Your new problem, "command not found..." doesn't sound like Perl is running your program. I think it may be from whitespace before "#!/usr/bin/perl" in hello.

Ryan Zachry