in reply to What did i do to CGI.pm?

Better mention that I removed the hitches to mod_perl and still had the issues... now errors as
Undefined subroutine &main::Link called at /home/vae/public_html/index +.cgi line 10.

Replies are listed 'Best First'.
(Ovid) Re(2): What did i do to CGI.pm?
by Ovid (Cardinal) on Jan 05, 2001 at 05:05 UTC
    This:
    use CGI; my $q = CGI->new; print $q->start_html( -title => "Some Title", -style => { src => '../style.css', type => 'text/css' } );
    Produces:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head><title>S +ome Title</title> <link rel="stylesheet" type="text/css" href="../style.css"> </head><body>
    I believe you were looking for how to include a proper CSS link? That should do it. I'm using CGI.pm version 2.74.

    Gosh, I love CGI.pm :)

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.