NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Would it dehave somewhat like this? (Score:1)
Sorry for the formating, the lameness filter sucks!
#!/usr/bin/perl -w
use strict;
use XML::Twig;
my $p = XML::Twig->new(
twig_handlers =>
{ a => sub { my( $p, $a)= @_;
print "I got ", $a->text, "\n";
$p->purge; # frees-up memory
}},);
print "Reading from __DATA__\n";
$p->parse( \*DATA);
__END__
fiddlesticks
Reply to This
Re:Would it dehave somewhat like this? (Score:1)