#perl
05 October 2007
Total 43 pages. You are browsing page 5/43.
First :: Prev :: [...] [3] [4] [5] [6] [7] [...] :: Next :: Last
01:19 <****> yes, that's the simplest indexing method
01:19 <****> because for some odd reason - they aren't sorted within the file asciibetically
01:19 <****> i was wondering if some people had written more sophisticated things with APIs optimization, balancing, etc
01:20 <****> as I said, no one has referred to a CPAN module in the threads that I have read concerning this approach
01:20 <****> well I will go write it. i dont have time to wait
01:20 <****> schemelab: It sounds kind of like a suffix tree, now.
01:20 <****> schemelab: I'd've thought push(@{$buckets{substr($_,0,1)}},$_) for @strings
01:20 <****> yes, that too
01:20 <****> schemelab: would pretty much do what you're asking
01:20 <****> the suffix tree that is
01:21 <****> mst: ah, gotcha... I had a feeling it was going to be something simple...
01:21 <****> mst: still no-workee... in the process of wiping out all CPAN config, etc, etc... start from scratch
01:22 <****> sonichedg: you'll need to bounce out of CPAN and back in
01:23 <****> schemelab - if you haven't already read about postman sort - check it out
01:23 <****> sonichedg: also if you accidentally installed Module::Build before this you have a problem, since it doesn't install the compiler-related bits if it doesn't find one at install time
01:23 <****> mst: bouncing out/in didn't fix it, but rm /etc/perl/CPAN/Config.pm and starting again did... it's all good now, TYVM for your help
01:24 <****> This dividing by the first letter seems broken, unless you know that a first letter not matching will always be a 0 fuzzy_match return
01:25 <****> I think that's the assumption jager
01:26 <****> ...always be lower fuzzy match return than a matching one
01:27 <****> anno-: Unless you've checked to see that any actually exist, that is effectively 0.
01:28 <****> I knew somebody could fold the bucket hash down to one line for me :)
01:28 <****> yeah, but it may be easier to prove (justify the assumption)
01:28 <****> but I'd still prefer an OO api
01:28 <****> Hah
01:28 <****> perlbot: metaperl
01:28 <****> A troll, but sometimes his trolling produces thought provoking discussion.
01:29 <****>bar(...);
01:29 <****> There, OO.
01:29 <****> Roughly
01:34 <****> schemelab: well, of course. all it took was you asking the damn question :)
01:34 <****> does anyone else cry when they read an article titled "creating a database in excel"
01:34 <****> nope
01:34 <****> the correct response is hysterical laughter.
01:35 <****> ror, I'm reminded painfully of a previous job.
01:36 <****> apeiron: everything kept in a giant spreadsheet?
01:36 <****> kspath, Yup.
01:36 <****> if you don't have a programmer
01:36 <****> and you already have office licenses
01:36 <****> you can do far worse
01:37 <****> mst: at least you can export as CSV
01:41 <****> serfbot: GumbyBRAIN is sleeping with the fishes, it would seem
01:41 <****> apeiron: as does page 32 of the book online for 45 days ... only to say GumbyBRAIN is getting mixed up with =p
01:45 <****> GumbyBRAIN: serfbot is checking you out, ask it out!
01:50 <****> cube it howie
01:50 <****> workbench?
01:50 <****> Temporarily out of entropy. Please try again later.
01:50 <****> ah
01:50 <****> cube it louis
01:51 <****> Temporarily out of entropy. Please try again later.
01:51 <****> agh, spammers have a hold of the p3m signup!
01:51 <****> Somni: that sucks
01:52 <****> today alone I had 10 bounced emails from the account verification
01:56 <****> I think I need to put a captcha in place..
01:59 <****> which html module am I thinking of that has 'look_down'?
02:00 <****> TreeBuilder
02:00 <****> HTML::Tree::Scanning?
02:00 <****> http://search.cpan.org/search?query=look_down&mode=all
02:00 <****> or maybe HTML::Elitist :P
02:00 <****> I thought it was TreeBuilder but I can't see it in the docs
02:00 <****> LOL
02:00 <****> Khisanth++
02:00 <****> HTML::Element
02:00 <****> most of the methods are documented in HTML::Element
02:00 <****> it is HTML::TreeBuilder, at least one of them
02:00 <****> provides the actual method
02:00 <****> ahhh that's right
02:01 <****> wow, that's pretty bad; I'm in the admin interface for p3m and I can't for the life of me figure out how it works
02:01 <****> like, how I set the whole thing up
02:01 <****> it's working by magic, I swear
02:39 <****> I hear a lot about perl one-liners, are they a good replacement for awk? basically, is it worth learning perl for *just* one liners and nothing else? or is this overkill/waist?
02:39 <****> the rule of thumb tends to be "awk is often slightly less characters, perl is almost always significantly faster"
02:39 <****> I've never learned awk/sed
02:40 <****> draw your own confusions
02:40 <****> plus of course there are loads of things you can do with perl one-liners that simply aren't possible with awk
02:40 <****> the thing is i know for a fact that i won't be using perl to script anything more then a one-liner
02:40 <****> that's where i'm wondering if it's worth it
02:41 <****> too compfterable with python for my scripting needs atm to swtich over to perl :/
02:42 <****> how can you write one liners without really understanding perl? and to really understand perl, you need to be able to write bigger programs
02:42 <****> sabooky: give me an example of an awk one liner that pissed you off to write
02:42 <****> mauke: thats where "is it worth it" comes in
02:42 <****> all I really use perl for nowadays is one-liners
02:42 <****> mst: never said awk pissed me off. I'm new at it, so it takes a while to figure out things for now
02:43 <****> can't count the days one-liners the knowledge has saved me...
02:43 <****> just wondering if i should invest my time in awk or invest it in perl
02:43 <****> the knowledge of
02:43 <****> Chris62vw: yea... huge time savers
02:43 <****> sabooky: ahh
02:44 <****> sabooky: if you don't already know awk, then I'd learn perl instead
02:44 <****> sabooky: it's much more widely known these days
02:44 <****> sabooky: I pretty much always do my one-liners in perl
02:44 <****> sabooky: tbh it's worth it just for the regexps
02:44 <****> mst: can u point me to a good documentation on that?
02:45 <****> most things support regex
02:45 <****> not sure what "perl regex" brings to the table thats extra
02:45 <****> yes, but none of their regexps are as powerful as the perl ones
02:45 <****> well, right to left is one thing that i remember wanting once in python :(
02:45 <****> but other then that..what else does it add? :p
02:45 <****> in fact, pretty much everything these days implements a subset of perl's re engine
02:46 <****> I barely use grep nowadays. go perl!
02:46 <****> sabooky, The fact that its users are fairly intolerant of people who can't or won't spell properly.
Total 43 pages. You are browsing page 5/43.
First :: Prev :: [...] [3] [4] [5] [6] [7] [...] :: Next :: Last
