in reply to Execute a Perl code without ".pl" extension
In order to answer your question, we'd have to know what shell and OS you are using. If you are using bash or a related *nix shell, then the "shebang" line of your code (the first line of the myperlcode script) should have a full path to your perl interpreter and the myperlcode file should be executable. If you're on some other OS or some other shell, that may not be sufficient.