Solved

first.pl : Command not found

Posted on 2001-06-21
2
230 Views
Last Modified: 2012-05-04
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
Comment
Question by:Richard Coffre
2 Comments
 
LVL 5

Accepted Solution

by:
marecs earned 30 total points
ID: 6214236
chmod +x first.pl
./first.pl
0
 
LVL 1

Author Comment

by:Richard Coffre
ID: 6214258
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question