#perl - Wed 9 May 2007 between 00:00 and 00:18



buuPetr Pajas > XML-LibXML-1.63 >
my @nodelist = $doc->getElementsByLocalName($localname);
my $node = $doc->getElementById($id);
actionbuu shrugs
buushrugs
actionCPAN rating: Module-Pluggable rated 4 stars by Ricardo SIGNES
CPANrating: Module-Pluggable rated 4 stars by Ricardo SIGNES
buuI was staring at the cpan.
jagermanSo it's changed since then
buuBut it explains his problem.
jagermanIt makes sense; the DOM only defines getElementById
1.60
- getElementsById corrected to getElementById and the old name kept
as an alias.
From the changelog
thrigugh. CamelCase
rmahDOM sucs
subichanit worked! but "wide character in print" is a bad warning? I get that now
jagermanthrig: It is intentionally a direct map of DOM methods
With a few extra s's here and there ;)
maukesubichan: are you printing to STDOUT?
subichani'm printing to a file
maukebinmode $fh, ':utf8'; print $fh "...."
jagermansubichan: It means you have some sort of unicode data that you're printing out, but you haven't opened the file in utf8 mode (or in some other encoding that supports wide characters)
actionCPAN rating: PPI rated 5 stars by Ricardo SIGNES
CPANrating: PPI rated 5 stars by Ricardo SIGNES
jagermanBetter yet is to change your open to: open $fh, ">:utf8", $filanem
actionCPAN rating: PadWalker rated 4 stars by Ricardo SIGNES
CPANrating: PadWalker rated 4 stars by Ricardo SIGNES
actionCPAN rating: Params-Util rated 4 stars by Ricardo SIGNES
CPANrating: Params-Util rated 4 stars by Ricardo SIGNES
subichanhow come it displays as unicode though?
maukebecause perl outputs utf-8 anyway
YaakovHello, thrig.
actionCPAN rating: Perl-Critic rated 4 stars by Ricardo SIGNES
CPANrating: Perl-Critic rated 4 stars by Ricardo SIGNES
thrigmorning, Yaakov
digitokMorning, kovaya
actionCPAN rating: Perl-MinimumVersion rated 4 stars by Ricardo SIGNES
CPANrating: Perl-MinimumVersion rated 4 stars by Ricardo SIGNES
actionCPAN rating: Pod-Coverage rated 4 stars by Ricardo SIGNES
CPANrating: Pod-Coverage rated 4 stars by Ricardo SIGNES
jagermanRATING SPAM DETECTED!
actionjagerman arms the zigs
jagermanarms the zigs
silijagerman: make your time
jagermanDon't be sili.
actionCPAN rating: SQL-Abstract rated 4 stars by Ricardo SIGNES
CPANrating: SQL-Abstract rated 4 stars by Ricardo SIGNES
siliSQLABSTRACT? PFFFT. USE SQL BUILDER. TOP-DOWN ABSTRACTIONS FTL

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 100 

IrcArchive