PLJava

 view release on metacpan or  search on metacpan

basiclib/XML/Smart/HTMLParser.pm-txt  view on Meta::CPAN

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#######
# NEW #
#######
 
sub new {
  my $this = shift ;
  my $class = ref($this) || $this ;
  return $this if ref $this ;
 
  $this = bless {} => $class ;
   
  my %args = @_ ;
  $this->setHandlers(%args) ;
   
  $this->{NOENTITY} = 1 ;
   
  return $this ;
}
 
###############

basiclib/XML/Smart/Parser.pm-txt  view on Meta::CPAN

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
$VERSION = 1.2 ;
 
my(@parsed , @stack, $level) ;
 
 &compile();
 
sub new {
  my $this = shift;
  my $class = ref($this) || $this;
  return $this if ref $this;
  $this = bless {} => $class ;
 
  my %args = @_ ;
  $this->setHandlers(%args) ;
   
  $this->{NOENTITY} = 1 ;
 
  return $this ;
}
 
sub setHandlers {

basiclib/XML/Smart/ParserLite.pm-txt  view on Meta::CPAN

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use strict;
use vars qw($VERSION);
$VERSION = sprintf("%d.%s", map {s/_//g; $_} q$Name: release-0_55-public $ =~ /-(\d+)_([\d_]+)/);
 
sub new {
  my $self = shift;
  my $class = ref($self) || $self;
  return $self if ref $self;
 
  $self = bless {} => $class;
  my %parameters = @_;
  $self->setHandlers(); # clear first
  $self->setHandlers(%{$parameters{Handlers} || {}});
  return $self;
}
 
sub setHandlers {
  my $self = shift;
  no strict 'refs'; local $^W;
  unless (@_) { foreach (qw(Start End Char Final Init)) { *$_ = sub {} } }



( run in 0.260 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )