Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have code that prints html header this way with CGI.pm:
this is just part of it that goes in this header:
My question is, if I have a page that I want to pull in a different CSS is there a way to put them all in a array instead of the way I did it, where the files are all printed into there so they are all pulled in:
Please let me know how to make it work.
Thank you. :)
Ukn
-style => {-code=> "$page_style", 'src'=>[$_css_path,$_css_path2]},#.. +.. I just copied that line out...
this is just part of it that goes in this header:
print start_html();
My question is, if I have a page that I want to pull in a different CSS is there a way to put them all in a array instead of the way I did it, where the files are all printed into there so they are all pulled in:
Then if I have another path, say in this tag: $_css_path3, how would I add it? push?@whatever = ("$_css_path","$_css_path2"); -style => {-code=> "$page_style", 'src'=>@whatever}, #....
Please let me know how to make it work.
Thank you. :)
Ukn
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Style in CGI Header
by frozenwithjoy (Priest) on Sep 30, 2014 at 04:15 UTC | |
by Anonymous Monk on Sep 30, 2014 at 23:00 UTC | |
by Anonymous Monk on Oct 01, 2014 at 01:20 UTC | |
by frozenwithjoy (Priest) on Oct 01, 2014 at 01:01 UTC |
Back to
Seekers of Perl Wisdom