Schrift
[thread]13043[/thread]

Hilfe Fehlermeldung



<< >> 4 Einträge, 1 Seite
Gast Gast
 2009-01-24 18:27
#118298 #118298
Hallo Leute,

ich habe ein fertiges Perl-Script zum Datei-Upload übernommen. Leider funktioniert es nicht. Da ich keine Erfahrung habe bitte ich Euch um Hilfe.

Für folgende Zeilen:

Code: (dl )
1
2
3
4
5
6
16 use CGI; File not executable (use chmod +x)
17 (no output)
18
19 use Fcntl qw(:DEFAULT :flock);
20 use File::Temp qw/ tempfile tempdir /;
21 #use Carp;

Erhalte ich diese Fehlermeldung:

syntax error at C:\Users\Alex\AppData\Local\Temp\dir2090.tmp\upload.pl line 16,
near "File not "
"use" not allowed in expression at C:\Users\Alex\AppData\Local\Temp\dir2090.tmp\
upload.pl line 16, at end of line
"no" not allowed in expression at C:\Users\Alex\AppData\Local\Temp\dir2090.tmp\u
pload.pl line 17, at end of line
"use" not allowed in expression at C:\Users\Alex\AppData\Local\Temp\dir2090.tmp\
upload.pl line 19, at end of line
BEGIN not safe after errors--compilation aborted at C:\Users\Alex\AppData\Local\
Temp\dir2090.tmp\upload.pl line 20.

kann mir jemand helfen?

Danke Alex
renee
 2009-01-24 18:34
#118299 #118299
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Da es wohl ein Kommentar sein soll, muss es so aussehen:

Code: (dl )
1
2
3
4
5
6
16 use CGI; # File not executable (use chmod +x)
17 #(no output)
18
19 use Fcntl qw(:DEFAULT :flock);
20 use File::Temp qw/ tempfile tempdir /;
21 #use Carp;
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
Gast Gast
 2009-01-24 20:13
#118302 #118302
Super!! Genau das war´s. Danke!!
styx-cc
 2009-01-24 23:36
#118308 #118308
User since
2006-05-20
533 Artikel
BenutzerIn

user image
Mache Cross-Posts in Zukunft doch bitte auch als solche erkennbar. http://www.perlunity.de/cgi-bin/forum/forum_thread...
Pörl.
<< >> 4 Einträge, 1 Seite



View all threads created 2009-01-24 18:27.