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

first.pl : Command not found

Hi,

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

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
0
Richard Coffre
Asked:
Richard Coffre
1 Solution
 
marecsCommented:
chmod +x first.pl
./first.pl
0
 
Richard Coffree-commerce Product ManagerAuthor Commented:
OK,

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
0

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