Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi All! I would like to know, how can i use flavicon in my cgi? I have tried this way (but it doesn't work):
$q->start_html(-title=>'Végre van rendes fejlécem', -BGCOLOR=>'#efeffc +' , -attachment=>'<LINK REL="SHORTCUT ICON" HREF="http://localhost/favicon +.ico">' ),
Thank you for all helping!

Replies are listed 'Best First'.
Re: How can i put flavicon.ico into cgi
by PodMaster (Abbot) on Sep 21, 2004 at 09:05 UTC
    -attachment=>? Where do you get that from? As per documentation,
    $q->start_html( -head=>[ $q->Link({ -rel => 'SHORTCUT ICON', -href =>'http://www.capricorn.com/s2.html' }), ], );

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      Thank you very much(both of you!). It works.
Re: How can i put flavicon.ico into cgi
by ysth (Canon) on Sep 21, 2004 at 08:59 UTC
    You have it spelled favicon.ico in the code and flavicon.ico elsewhere, and I've never heard of <body attatchment= ...>; where did you see a reference to this kind of thing?

    Update: if you want to add a link tag to the head section, CGI's doc says to do it like this:

    print start_html(-head=>Link({-rel=>'next', -href=>'http://www.capricorn.com/s2.html'}));