Skrilax: CGI-Modul und xml Ausgabe im FF/NS - Ich find nix...

Beitrag lesen

Hallo!

my myCGI = new CGI;
myCGI->header = ( -type =>'text/xml',
                  -expires => '30s');
print $myCGI->header();

Ach, sehe ich erst jetzt. header() ist überhaupt nur eine Methode, keine Variable. d.h. das Gleichheitszeichen muss außerdem raus. So also:
print $myCGI->header(-type => 'text/xml', usw. );

Grüße, Skrilax

--
Democracy is a device which ensures that we shall be governed no better than we deserve.
(G. B. Shaw)