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
In reply to (zdog) RE: CGI.pm for CSS, tables, pet tricks
by zdog
in thread (code)) CGI.pm - CSS, tables... (deprecated by node 50167)
by ybiC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |