Unable to call external css file in perlCGI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aurekha
    New Member
    • Sep 2007
    • 34

    Unable to call external css file in perlCGI

    Hi All,

    Im stuck with the problem is like, i am unable to include external css files in perlCGI.

    Below is the code:

    Code:
    #!/usr/bin/perl
    
    use CGI qw(:standard);
    use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
    use strict;
    
    print header;
    
    #first method
    print '<link rel="stylesheet" type="text/css" href="/mycss/yes.css" />';
    
    #second method
    print start_html(-title=>'Zen and the Art of CSS',
                     -style => { -src => 'http://localhost/mycss/yes.css',
                                 -type => 'text/css',
                                 -media => 'screen' },
                     );
    print end_html;

    --------------------------------------

    I have tried above 2 methods. But unable to include.

    Thanks in advance.
    Last edited by numberwhun; May 10 '12, 06:25 AM. Reason: Please use code tags!
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Can you possibly tell us if you are on a Windows system or Unix/Linux system? Also, if its *nix, is there a permissions problem?

    Regards,

    Jeff

    Comment

    Working...