1
2
21.02.2020 16:15:08 derwebfuchs.de [client meinclient::] AH01215: /home/strato/http/premium/rid/96/99/9ziffern/htdocs/cgi-bin/printenv.pl: (2)No such file or directory: 4651336-exec /home/strato/http/premium/rid/96/99/9ziffern/htdocs/cgi-bin/printenv.pl failed permanently: /home/strato/http/premium/rid/96/99/9ziffern/htdocs/cgi-bin/printenv.pl
21.02.2020 16:15:08 derwebfuchs.de [client meinclient::] End of script output before headers: printenv.pl
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
##
## printenv -- demo CGI program which just prints its environment
##
print "Content-type: text/plain; charset=iso-8859-1\n\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/perl -w use strict; use warnings; use CGI::Carp qw(fatalsToBrowser); # Zum Entwickeln auf dem lokalen Server eventuelle Fehler auf Webseite ausgeben, auf Produktionssystem bitte diese Zeile entfernen/auskommentieren!!!! ## ## printenv -- demo CGI program which just prints its environment ## print "Content-type: text/plain; charset=iso-8859-1\n\n"; foreach my $var (sort(keys(%ENV))) { my $val = $ENV{$var}; $val =~ s|\n|\\n|g; $val =~ s|"|\\"|g; print "${var}=\"${val}\"\n"; }
1
2
3
4
5
6
7
8
9
Software error:
Global symbol "$var" requires explicit package name at /home/strato/http/premium/rid/96/99/510389699/htdocs/cgi-bin/test2.pl line 12.
Global symbol "$val" requires explicit package name at /home/strato/http/premium/rid/96/99/510389699/htdocs/cgi-bin/test2.pl line 13.
Global symbol "$var" requires explicit package name at /home/strato/http/premium/rid/96/99/510389699/htdocs/cgi-bin/test2.pl line 13.
Global symbol "$val" requires explicit package name at /home/strato/http/premium/rid/96/99/510389699/htdocs/cgi-bin/test2.pl line 14.
Global symbol "$val" requires explicit package name at /home/strato/http/premium/rid/96/99/510389699/htdocs/cgi-bin/test2.pl line 15.
Global symbol "$var" requires explicit package name at /home/strato/http/premium/rid/96/99/510389699/htdocs/cgi-bin/test2.pl line 16.
Global symbol "$val" requires explicit package name at /home/strato/http/premium/rid/96/99/510389699/htdocs/cgi-bin/test2.pl line 16.
Execution of /home/strato/http/premium/rid/96/99/510389699/htdocs/cgi-bin/test2.pl aborted due to compilation errors.