• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

first.pl : Command not found


When I try to run a Perl script first.pl by typing at the prompt :

I have the following issue :

first.pl : Command not found

Thanks the which command I determined the location of Perl so my script is as below :

#!/usr/local/bin/perl -w

($user) = @ARGV;

print "Hello $user\n";

If I write at the prompt :
perl first.pl

I don't have the issue.

Any ideas,
Thanks in advance
Richard Coffre
Richard Coffre
1 Solution
chmod +x first.pl
Richard Coffree-commerce Product ManagerAuthor Commented:

It wasn't a right issue because I previously set the execution right, it was ./.

Can you explain me why I should put it ?

Thanks in advance

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now