Changeset 1483 for trunk/gsdl/perllib/classify/HTML.pm
- Timestamp:
- 2000-08-31T20:05:25+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/HTML.pm
r717 r1483 33 33 package HTML; 34 34 35 use BasClas; 36 37 sub BEGIN { 38 @ISA = ('BasClas'); 39 } 40 35 41 sub new { 36 42 my ($class, @options) = @_; 43 my $self = new BasClas ($class, @_); 37 44 38 45 my ($title, $url); … … 46 53 } 47 54 48 die "Error: HTML classifier contains no 'url' option\n" 49 unless defined $url; 55 if (!defined $url) { 56 my $outhandle = $self->{'outhandle'}; 57 print $outhandle "Error: HTML classifier contains no 'url' option\n"; 58 die "\n"; 59 } 50 60 51 61 $title = 'Browse' unless defined $title; 52 62 53 return bless {54 'url' => $url, 55 'title' => $title 56 }, $class;63 $self->{'url'} = $url; 64 $self->{'title'} = $title; 65 66 return bless $self, $class; 57 67 } 58 68
Note:
See TracChangeset
for help on using the changeset viewer.