AztecMonkey has asked for the wisdom of the Perl Monks concerning the following question:
This caused a runaway process on our server and jacked up the error log. So obviously, this isn't correct.#!/usr/bin/perl -w use CSS::SAC qw(); use CGI qw(:all); use CGI::Carp qw(fatalsToBrowser); my $sac = CSS::SAC->new(); my $cgi = new CGI; # generate a stream of events $sac->parse({ filename => 'foo.css' }); my @items = $sac->parseSelectors(); print $cgi->header(); print $sac; foreach my $item (@items) { print "$item<br>\n"; }
I get the $sac->parse statement, but what I don't get is what is meant in the pod by "sends events to the defined handlers. " What handlers are being referred to? Also, the parseSelectors($stringref) method accepts a string, but what would that be?
Any help would be greatly appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CSS::SAC module
by trs80 (Priest) on Jan 17, 2002 at 09:14 UTC |