Solved

first.pl : Command not found

Posted on 2001-06-21
2
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remove Malware code from PHP file 6 104
Perl script to parse log and delete the file 17 182
Migrate OTRS to newest version. 1 592
Convert grep lines to perl 6 96
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.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…

734 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