| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Comments:
<0> ForceArray isn't working worth crap. after I use Dumper to print out part of the tree, it's not an array <1> dude <1> check the ref <2> hi Daveman! <1> that's what i am doing <1> nopaste? <1> http://rafb.net/paste/results/e52JQy36.html <3> The paste e52JQy36 has been moved to http://sial.org/pbot/17470 <0> just a sec. <4> 13 is a lucky number <1> use XML::Simple qw(:strict); <1> i left that part out on the paste <0> heh, note to self: if you use cachable with XML::Simple and don't delete the .stor file, it ignores your options and just reads the cached version. <5> hmm. does $poe_kernel->delay($state => $seconds => @etc) take into consideration what's in @etc about determining "same"? <0> hence why my new ForceArray wasn't working <0> thanks all
<6> merlyn: what? <5> well - ->delay(foo => 3) clears a previous ->delay(foo => 5) if that hasn't fired yet <5> but would ->delay(foo => 3, "hey", "there") clear a previous ->delay(foo => 5, "what", "is this"); <5> that's what I need to know <6> it clears any previous delays for the event foo <5> regardless of the extra payload? <6> yep <5> Hmm. less useful then <6> use the new delay interface then <7> which perl module can i use to strip the html markup tags, leaving only the text? tried HTML::Strip, but found this was too lossy when dealing with HTML that has CSS/JS. also tried HTML::PullParser, but I haven't yet figured out how to extract only the textual contents <6> jade; $text =~ s/<[^>]+?>//g; :) <8> jade: What do you mean by 'too lossy'? You want to keep the CSS/JS? <9> merlyn: No, sameness is based on the event name only. <8> jade: (Is there actually something in particular you are trying to capture from your original HTML?) <10> btw, woggle++ (Google SoC) <7> woggle, with HTML::Strip some of the text between the tags is stripped out as well for example, <h1 cl***="myh1style">title</h1> <11> i'm having trouble creating functions that update some elements in an array <11> the problem is that i want to index into the array to bind at function creation time, but instead it late-binds to whatever the last value for the index was (in that scope) <5> OK - so ->delay_add <12> "ericP" at 82.247.112.136 pasted "late-binding index (variable) problem in lamda functions" (18 lines, 364B) at http://sial.org/pbot/17471 <11> i'm looking for a way to modify 17471 so i get the obvious desired output {0,1,2} <7> woggle, I am trying to capture the product description from all of the other text that appears on product pages, e.g. www.amazon.com/cool_book <11> oooh, look, my pbot entry is a palandrome <5> so ->delay(some_event => 0) is unlike ->yield(some_event =>) because only one of the first kind will ever be thrown, but a hundred of the second will trigger 100 calls <5> interesting <8> ericP: for my $i (0..(MAX-1)) { ... } <8> ericP: Or something else that creates a new variable for each iteration of the loop <13> Hello. Is it possible to reverse a string using regexp? <10> Joti: perldoc -f reverse <3> reverse. To access this perldoc please type, at a command line, 'perldoc -f reverse'. You may also find it at http://perldoc.perl.org/functions/reverse.html <11> woggle, trying... <13> I need a regexp, PerlJam . I'm going to use it in a PHP script <14> hahahaha <10> Joti: http://us3.php.net/manual/en/function.strrev.php <8> Joti: (1) Regexps are frequently not the best or even an advisible solution to an arbitrary text manipulation problem; (2) Perl regexps aren't quite the same as PCRE. <13> Oh, never thought of that. Thanks, PerlJam <10> Joti: Until you show me some real reason it *needs* to be a regular expression, I'm just going to keep spouting the obvious answers :) <13> I see woggle <7> imMute, doesnt strip all of the special characters and markup that appears in the HTML, e.g. or <script language="javascript">h_position(1);</script> <13> Last time I needed it for Perl, and for some stupid reason I asked specifically for a regexp, I have some weird belief that all string manipulation is done by regexp <10> Joti: extirpate that idea immediately <13> Already done <8> jade: I cannot replicate the <h1 ...> issue. <11> PerlJam, actually, a friend's friend just died -- busy <10> ericP: bummer <15> Logistix Question: I need to do 5 separate db queries and use the results inside qq{ $results1, $results2 etc}; Is there a better way of achieving this rather than using 5 lots of query code? <8> perlmonkey: (1) If you're naming variable $foo1, $foo2, $foo3, etc. you probably should be using an array instead. <10> perlmonkey: If the queries are substantially similar, you might be able to use placeholders. <15> they are very similiar <16> i'm trying to remove a perl module (Mail::Spam******in). can anyone guide me through the process? <7> woggle, OK, let me paste bin the situation, thanks. <8> And if they somehow aren't similar enough for placeholders, then you can obviously generate the similar queries programmically. <5> yeah - almost any $variableMumble3 is the sign that something is wrong <10> morten: man rm <15> cool <5> you shouldn't have "3" of anything. :) <10> morten: or if on Windows, "help del" or somesuch <16> PerlJam: i'm on debian. are you saying i should just manually delete the directories in question? <10> morten: I am indeed. <8> Unless you installed said package with some package management fu, yes.
<16> groovy. <8> (Though CPANPLUS has this uninstall feature...) <17> so does portage <10> woggle: does it work? <8> So I've been told. <10> CPAN had an uninstall feature at one time too you know :) <16> PerlJam: now, i'm removing this because i'm completely out of my league here, and it just feels safer to install it from apt-get instead. would it be stupid to just install with apt-get over the perl install? <16> it's the same program, right, so wouldn't it just place the same files in the same locations? <8> At least I've been told it works for 'normal' modules. <8> ... that you installed with CPANPLUS. <10> morten: using apt-get is good. installing over the existing installing is probably not good. <10> er, s:2nd/installing/installation/ <16> okay. how do i know which directories to remove? <10> perl6++ :-) <10> morten: start with perldoc -l Main::Spam******in <10> er, Mail <10> pretend I wrote the right thing and do that :) <16> thanks PerlJam. i'm on the mother****er. <12> "jade" at 64.166.248.24 pasted "HTML::Strip lossy for special case HTML/CSS tags" (27 lines, 535B) at http://sial.org/pbot/17472 <8> jade: Uh, I was hoping for a testcase that didn't contact the net and was minimal. (; <7> lol <18> perlbot, karma perl6 <19> Karma for perl6: -2 <18> hahaha <7> woggle, I thought that was minimal <8> The minimal test case will have the shortest HTML you can get that breaks HTML::Strip. <10> perl6++ for making the "rules v. ****s" metric obsolete ;) <7> woggle, I am slightly lazy <8> So am I. <10> jade: not lazy enough. <8> Unfortunately for you, I don't care that much about solving your problem. (; <10> jade: were you appropriately lazy, you wouldn't have to generate *another* test case for woggle to help you with. <7> lol <8> The ideal minimal test case is easily turned into a test case for HTML::Strip's test suite. <20> How does one make a shell sentence coloured/bolded/underlined? <8> Tom_Beers: See Term::ANSIColor <20> OK, thanks. <16> PerlJam: perldoc -l Mail::Spam******in returned '/usr/local/share/perl/5.8.4/Mail/Spam******in.pm' <16> what do i do with this newfound information? <21> <input type="text" name="suffix"> Makes $ARGS{suffix} into an array ref on the submitted page, why is that? (I'm using Mason) <17> morten: delete that file <14> GumbyBRAIN: explain nethack <22> I'm just trying to give a ring around but they still haven't got into nethack. <16> stuuf: is that all i need to do to uninstall spam******in? <20> Although, I have a perl script that can do it, but doesn't use any modules, how does it do that? <23> perlbot: module uninstall <23> perlbot: uninstall modules <23> perlbot: uninstall <19> http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules <23> \o/ <16> for me? <7> woggle, this test case (e.g. '<h1 cl***="tBlue">Asics Gel-Solutions™</h1>'), which causes breakage is not so easy to reproduce because it is not specifically this sequence of tag, but the context HTML it appears it. I have not narrowed it down because it is a big detour to my work, and I don't have budget to fix broken perl packages! <23> erm .. probably, morten <16> BinGOs: i tried that earlier. 'perl -w' just freezes :( <23> That's the safest way. Milage will vary. <16> BinGOs: i believe you. but if i can't even run perl, i'm not getting very far. seeing as that is the very first step. <16> so how do i make this work, if i can't even run perl? <16> it skipped a line, and i've just got a caret. no prompt or anything. it's just sitting there :( <24> what does perl -v give you? <16> some general info <16> version etc <25> well then you can run perl :) <24> let me scroll up, I missed the start of this conversation <25> "perl -w" doesn't "just freeze"; it's waiting for input. Check perldoc perlrun if you want to know why :) <3> perlrun - Perl execution and options. To access this perldoc please type, at a command line, 'perldoc perlrun'. You may also find it at http://perldoc.perl.org/perlrun.html <16> hobbs: so i'm just supposed to type in the stuff it says in this faq here? <25> What? <16> frankly, i don't understand half of it. which is why i shouldn't have installed this module in the first place. could you walk me through it? <16> http://www.cpan.org/misc/cpan-faq.html#How_delete_Perl_modules <24> how did you install the module?
Return to
#perl or Go to some related
logs:
kdevelop codeblock gentoo ntfs permisions diskmounter reiserfs www.pissfunny. smbd xubuntu pl2501 linux #css router.cfg editor #mysql to not load a module
|
|