in reply to Perl Modules
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl Modules
by eNtropicChild (Initiate) on Apr 23, 2004 at 21:10 UTC | |
by eNtropicChild (Initiate) on Apr 23, 2004 at 21:18 UTC | |
by Belgarion (Chaplain) on Apr 23, 2004 at 21:46 UTC |