| somian | Tibetan Buddhist humor. |
| th3man | is there a html table -> csv convertor in perl? |
| merlyn | there are modules to scrape tables yes and modules to write CSV both in the cpan. enjoy! |
| dew | probably. wouldn't be hard to knock one up yourself with an html parser tho |
| hobbs | yeah. Strapping those two things together is _easy_ :) |
| somian | You seem to be in fine fettle today hobbs :-) What one really wants is a kettle o' fish in fine fettle, I suppose. |
| hobbs | llo somian. I'm really not sure about my fettle. I'm pretty tired. ;) |
| fratermisc | Luvmuscle, sorry, got ambushed by a manager. |
| somian | I hear ya. |
| hobbs | Luvmuscle: 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 |
| th3man | merlyn: which do you recommend? :) |
| merlyn | I just said. there's an HTML Table Extract module, and a CSV module |
| hobbs | Luvmuscle: of course you can also tweak $/ but that's messier because it's a global effect. |
| action | somian just uses good ol' s{\cM?\cJ}{}; |
| somian | just uses good ol' s{\cM?\cJ}{}; |
| hobbs | and there's that :) |
| action | CPAN upload: Audio-MPD-0.13.4 by JQUELIN |
| CPAN | upload: Audio-MPD-0.13.4 by JQUELIN |
| Luvmuscle | great! |
| action | somian guesses that th3man is freaking out over the concept that there might be some _programming_ involved. |
| somian | guesses 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 |
| somian | It's representable in different ways in Perl |
| action | hobbs tends to think of it as \x0d\x0a |
| hobbs | tends to think of it as \x0d\x0a |
| somian | That's another good way |
| hobbs | Kneel before \x0d? |
| somian | My first gf was named "M.J." so I find that one easiest to remember :-) |
| th3man | merlyn: cool thx, html::tableextract it is |
| action | somian recommends that next time he finds himself ambushed, fratermisc climb a tree and throw pieces of his own excrement at the offender. |
| somian | recommends 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. |
| fratermisc | somian, recommendation noted. :) It'll be a nice exercise in regression therapy. PRIMAL even. I don't think this will get me a raise. |
| somian | Probably not. But you may have more bananas to yourself. |
| dew | sorry 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 ;) |
| Daveman | DO THE DEW! |