Thread CGI.pm -style Frage (2 answers)
Opened by Kuerbis at 2011-08-21 18:06

Kuerbis
 2011-08-21 18:06
#151721 #151721
User since
2011-03-20
943 Artikel
BenutzerIn
[default_avatar]
Hallo,

wie kann ich das schreiben, damit ich keine Fehlermeldung mehr bekomme?

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/local/bin/perl
use warnings;
use 5.012;
use utf8;
use CGI;

my $cgi = CGI->new();

print $cgi->header( -charset => 'UTF-8' );
print $cgi->start_html( 
   -style => { 
      -type => 'text/css', 
      -code => {
         body {
            margin:0;
            padding:0;
            /*background-color: #0080c0;*/
         }
         #con_1 {
            position: relative;
            height: 300px;
         }
      }
   }
);
print $cgi->p( { -id => "con_1" }, 'Hello World' );
print $cgi->end_html; 

# Quantifier follows nothing in regex; marked by <-- HERE 
# in m/* <-- HERE background-color: #0080c0;*/ at ./so.cgi line 16.

View full thread CGI.pm -style Frage