Robert --

...and then Robert Warning said...
% 
% Hello Everyone!

Hello!


%         Well after using php to help make a couple web pages I needed a
% scripting language for client side apps. Since php is best left for web
% development I decided to learn perl because php is based on perl and I

Good plan :-)


% thought it would be a fairly easy undertaking to get a good grasp in
% perl and it has been so far. My only problem is that when I put
% #!/usr/bin/perl at the beginning of any of my programs it wont run. I

Interesting.


% get an output from the shell that says /usr/bin/perl: bad interpreter:
% Permission denied. I could only run the script if I typed in: perl
% PATH_TO_SCRIPT.  Doing what any good linux user would do I checked the

Well, that says there is a perl out there somewhere, then.  That's good.


% permissions of the perl interpreter. The permissions were set so anyone
% could execute it. Then I thought something was wrong with the

What do you get when you try

  which perl

at your shell prompt?

Use that instead of /usr/bin/perl in your shebang (#!) line and your
script should work just fine.  That first line isn't any perl magic; it
tells the OS how to process the file by pointing it to the interpreter
(in this case, perl, and specifically the perl in /usr/bin, which may or
may not be the one you find by running

  perl scriptname

at the command line).


HTH & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg26556/pgp00000.pgp
Description: PGP signature

Reply via email to