package HTML::pageParser; use warnings; # could take this out in production code use strict; use Carp; use vars qw($VERSION);
where I have fixed the tokens hash key and gooten rid of @orig_args, as you don't use it.my $proto = shift; my $class = $proto; my $sysLoc = shift; my $self = {}; $self->{tokens} = []; $self->{sysLoc} = $sysLoc; bless ($self, $class); $debug .= "new class has been run<br>"; return $self;
$self->{tokens} = {}; # in new() my %tokens = %{ $self->{tokens} }; # in ParseData()
-Mark
In reply to Re: Perl Modules
by kvale
in thread Perl Modules
by eNtropicChild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |