http://www.perlmonks.org?node_id=997524


in reply to Re^2: how to run this script
in thread how to run this script

when i do ./filename it gives error bash: ./test.pm: Permission denied
You probably need to give your test.pm file execute permissions, like:
chmod 777 test.pm

Also, conventionally, the .pm file name suffix is reserved for Perl module files (see package). It is more common to use the .pl file extension for scripts.