first find the path of perl.exe using whereis command.
and then give the path in the top of program.

change yor cwd to the perl installed directory and execute the commad (./perl <filename>) .
or

add the path


Date forwarded: Wed, 14 Jul 1999 01:10:27 -0400
From: "Kush Desai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: a few questions on perl
Date sent: Wed, 14 Jul 1999 10:21:59 +0530
Forwarded by: [EMAIL PROTECTED]
Send reply to: [EMAIL PROTECTED]

> guys i need advice for this ...........
> i was trying to do a bit of programming in perl...in all the books they say
> that include
> #!/usr/local/bin/perl as the first line and make the file executable.....and
> then execute it at the prompt..but this never works for me.....i have to
> type perl <filename> at the prompt for all my perl programs..why is
> this..why can't i make my progs execute by just typing the filename???any
> ideas?
>
>
>




Reply via email to