in reply to (code)) CGI.pm - CSS, tables... (deprecated by node 50167)
use vars qw($type $expires $css $title $tm $file $mod); # declare variables my $type = 'text/html'; # HTML document type my $expires = 'now'; # browser page expiration my $css = './ybiC.css'; # Cascading Style Sheet my $title = 'CGI, CSS and Tables'; # HTML page title my $tm = localtime; # current host time my $file = '/var/www/htdocs/ybiC.cgi'; # this file my $mod = ctime(stat($file)-> mtime); # most recent modified time
So, if I am not mistaken, you can do it like so:
use vars qw($type $expires $css $title $tm $file $mod); # declare variables $type = 'text/html'; # HTML document type $expires = 'now'; # browser page expiration $css = './ybiC.css'; # Cascading Style Sheet $title = 'CGI, CSS and Tables'; # HTML page title $tm = localtime; # current host time $file = '/var/www/htdocs/ybiC.cgi'; # this file $mod = ctime(stat($file)-> mtime); # most recent modified time
I am guessing that that may speed things up slightly.
Update to first suggestion: I Benchmarked both ways and found that your way is faster anyway. I guess that I was mistaken.
Also, I don't know the reason for this but I keep getting a "Too late for "-T" option." error when I run it using ActivePerl.
Good luck.
Zenon Zabinski | zdog | zdog7@hotmail.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: CGI.pm for CSS, tables, pet tricks
by davorg (Chancellor) on Aug 14, 2000 at 17:52 UTC | |
by ybiC (Prior) on Aug 14, 2000 at 19:27 UTC | |
by davorg (Chancellor) on Aug 14, 2000 at 19:31 UTC | |
by tye (Sage) on Aug 14, 2000 at 19:52 UTC |