[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[OT] script Perl



Ho scritto un piccolo script in perl sia con estensione txt sia con pl
il listato è quì sotto:

#!/usr/lib/perl
$a = 10;
$b = "Sono una stringa";
print "a = $a\n";
print "b = $b1n";

quì si vede la versione del perl installato:

morphy@debian:~$ perl -v

This is perl, v5.8.4 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

questo invece èl'output:

morphy@debian:/home/appoggio/Perl$ chmod +x PerlProva
morphy@debian:/home/appoggio/Perl$ ./PerlProva
bash: ./PerlProva: /usr/lib/perl: bad interpreter: Permission denied

debian:/home/appoggio/Perl# chmod +x PerlProva.pl
debian:/home/appoggio/Perl# ./PerlProva.pl
bash: ./PerlProva.pl: /usr/lib/perl: bad interpreter: Permission denied
debian:/home/appoggio/Perl#

cosa devo fare per far funzionare lo script?

grazie David



Reply to: