Insérer un favicon via un script CGI
Bonjour :)
Actuellement, je développe une page web via CGI et je souhaiterai ajouter un favicon.
Voici le code:
Code:
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
| #!/usr/bin/perl -w
use strict;
use warnings;
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
$CGI::POST_MAX=1024*100;
$CGI::DISABLE_UPLOADS=1;
my $cgi=new CGI;
print $cgi->header(
-charset=>'iso-8859-1'
),
$cgi->start_html(
-lang=>'en',
-title=>'Olivier Regnier',
-meta=>{'distribution'=>'global',
'resource-type'=>'document',
'description'=>'the main oregnier page',
'keywords'=>'oregnier,openbsd'
},
-style=>{-src=>'/main.css'},
);
print $cgi->end_html(); |
J'ai essayé le code suivant:
Code:
-rel=>{'shortcut icon',-href=>'/favicon.ico'},
mais j'obtiens un hash :oops:
Un petit coup de main s'il vous plaît ?
Merki :mrgreen: