#perl - Tue 6 Mar 2007 between 15:15 and 15:28



somianTibetan Buddhist humor.
th3manis there a html table -> csv convertor in perl?
merlynthere are modules to scrape tables yes
and modules to write CSV
both in the cpan. enjoy!
dewprobably. wouldn't be hard to knock one up yourself with an html parser tho
hobbsyeah. Strapping those two things together is _easy_ :)
somianYou seem to be in fine fettle today hobbs :-)
What one really wants is a kettle o' fish in fine fettle, I suppose.
hobbsllo somian. I'm really not sure about my fettle. I'm pretty tired. ;)
fratermiscLuvmuscle, sorry, got ambushed by a manager.
somianI hear ya.
hobbsLuvmuscle: if you know that you're reading a DOS-formatted file, opening with (or binmoding) the ":crlf" IO layer on input will clean it up for you
th3manmerlyn: which do you recommend? :)
merlynI just said.
there's an HTML Table Extract module, and a CSV module
hobbsLuvmuscle: of course you can also tweak $/ but that's messier because it's a global effect.
actionsomian just uses good ol' s{\cM?\cJ}{};
somianjust uses good ol' s{\cM?\cJ}{};
hobbsand there's that :)
actionCPAN upload: Audio-MPD-0.13.4 by JQUELIN
CPANupload: Audio-MPD-0.13.4 by JQUELIN
Luvmusclegreat!
actionsomian guesses that th3man is freaking out over the concept that there might be some _programming_ involved.
somianguesses that th3man is freaking out over the concept that there might be some _programming_ involved.
Luvmuscle@somian I was wondering what the escape sequence for <ctrl> was...
\c, whoda thunk
somianIt's representable in different ways in Perl
actionhobbs tends to think of it as \x0d\x0a
hobbstends to think of it as \x0d\x0a
somianThat's another good way
hobbsKneel before \x0d?
somianMy first gf was named "M.J." so I find that one easiest to remember :-)
th3manmerlyn: cool thx, html::tableextract it is
actionsomian recommends that next time he finds himself ambushed, fratermisc climb a tree and throw pieces of his own excrement at the offender.
somianrecommends that next time he finds himself ambushed, fratermisc climb a tree and throw pieces of his own excrement at the offender.
And make loud noises.
fratermiscsomian, recommendation noted. :) It'll be a nice exercise in regression therapy.
PRIMAL even.
I don't think this will get me a raise.
somianProbably not. But you may have more bananas to yourself.
dewsorry to ask again, but can anyone tell me what i'm misunderstanding here:
perl -e 'my $foo = Foo->new; print $foo->cd; package Foo; sub new{ bless {}, shift } {my $cd = 1; sub cd{return $cd}}'
trying to do the closure style class data example from pertooc and not having much luck ;)
DavemanDO THE DEW!

Page: 3 10 17 24 31 38 45 52 59 66 73 80 87 94 101 

IrcArchive