PLJava
view release on metacpan or search on metacpan
basiclib/XML/Smart/HTMLParser.pm-txt view on Meta::CPAN
212223242526272829303132333435363738394041#######
# 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
373839404142434445464748495051525354555657$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
293031323334353637383940414243444546474849use
strict;
$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 )