diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-04-10 19:45:08 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-04-10 19:45:08 +0000 |
commit | 5cd0b561c2b8d21210f0eb90d689d190c3da3c72 (patch) | |
tree | 42e2bbfb2cbd33ec132c4c29d585beda2b5275db /pod/perlfaq7.pod | |
parent | d7aacf4ee7905e48b1ff143784e4166839441b3c (diff) | |
download | perl-5cd0b561c2b8d21210f0eb90d689d190c3da3c72.tar.gz |
PerlFAQ sync.
p4raw-id: //depot/perl@19188
Diffstat (limited to 'pod/perlfaq7.pod')
-rw-r--r-- | pod/perlfaq7.pod | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/pod/perlfaq7.pod b/pod/perlfaq7.pod index a144457de9..814a40314c 100644 --- a/pod/perlfaq7.pod +++ b/pod/perlfaq7.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq7 - General Perl Language Issues ($Revision: 1.13 $, $Date: 2003/01/26 17:45:46 $) +perlfaq7 - General Perl Language Issues ($Revision: 1.14 $, $Date: 2003/01/31 17:38:14 $) =head1 DESCRIPTION @@ -879,6 +879,31 @@ subroutines, because they are always global--you can't use my() on them. For scalars, arrays, and hashes, though--and usually for subroutines-- you probably only want to use hard references. +=head2 What does "bad interpreter" mean? + +The "bad interpreter" message comes from the shell, not perl. The +actual message may vary depending on your platform, shell, and locale +settings. + +If you see "bad interpreter - no such file or directory", the first +line in your perl script (the "shebang" line) does not contain the +right path to perl (or any other program capable of running scripts). +Sometimes this happens when you move the script from one machine to +another and each machine has a different path to perl---/usr/bin/perl +versus /usr/local/bin/perl for instance. + +If you see "bad interpreter: Permission denied", you need to make your +script executable. + +In either case, you should still be able to run the scripts with perl +explicitly: + + % perl script.pl + +If you get a message like "perl: command not found", perl is not in +your PATH, which might also mean that the location of perl is not +where you expect it so you need to adjust your shebang line. + =head1 AUTHOR AND COPYRIGHT Copyright (c) 1997-2002 Tom Christiansen and Nathan Torkington. |