thanks ..its working. whats the difference between running a perl script with command ./filename and perl filename .
when i do ./filename it gives error bash: ./test.pm: Permission denied
Please help
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.
That gives every man and his dog permission to run, modify or even delete the script, if they are able to browse to the directory containing it. Much safer would be