./perl.pl

You probably don't have the current directory in your search path, so when
you issue the perl.pl command, the machine looks everywhere, apart from the
current directory.

Either get into the habit of specifying ./command or add ./ to your search
path. Be aware that many people do not advocate adding ./ to your standard
search path and would recommend you get into the habit of prepending ./ when
necessary.

        -----Original Message-----
        From:   Daniel Chen [SMTP:[EMAIL PROTECTED]]
        Sent:   Wednesday, January 30, 2002 8:28 AM
        To:     Linux newbie
        Subject:        [newbie] Perl script is not able to execute

        Hi,

        I am using Mandrake 8.1 with bash shell.
        Today is my first time using perl script. I read from the book said
if I
        add #!/usr/bin/perl to the first line of my perl script, I can
execute
        the script by just typing the name of the script into the command
line.
        I have set the permission of this test.pl to 777

        However, when I did that, the shell gave me a error message said 
        bash: test.pl: command not found

        If I type
        perl test.pl
        or
        /usr/bin/perl test.pl
        then the perl script will work perfectly

        Please help me!

        Daniel
         << File: message.footer >> 


**********************************************************************
This email and any files sent with it are intended only for the named 
recipient. If you are not the named recipient please telephone/email  
the sender immediately. You should not disclose the content or        
take/retain/distribute any copies.                                    
**********************************************************************


Norwich Union Life & Pensions Limited
Registered Office 2 Rougier Street
York YO90 1UU
Registered in England Number 3253947
A member of the Norwich Union Marketing Group 
which is regulated by the Personal Investment Authority. 
Member of the Association of British Insurers.

For further Enquires 01603 622200 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to