| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Comments:
<0> perlbot: beginning perl <1> http://learn.perl.org/library/beginning_perl/ <2> "i'm sure i will figure it out.... my sets up the variables?" <3> remember, you have probably been here a long time <2> sorry. that was just kind of like saying... i can walk to LA... it's just down the road, right? <3> what i mean by that is, i'm sure i will figure it out, rather than just taking the code and not bothering to figure it out. <0> bt-at-home: we know, take your time <0> but if you're not familiar with a concept such as "my", you might want to freshen up <4> yeh <2> print scalar grep / /.../[^ ]/, grep /"/.../"/, split //; <2> i think that needs another test case. that doesn't look right. <2> yeah. no good. <4> the above you pasted works good at the moment, <2> then you haven't tested it very well, just like i haven't ;) <4> well i guess i should add some sort of checking to see if the total amount of " in the text is an even number <2> perl -e '$_=<STDIN>; print scalar grep /\w/, grep /"/.../"/, split /\b/;
<2> okay, that's my entry <2> without the perl -e and $_=<STDIN>...: <2> print scalar grep /\w/, grep /"/.../"/, split /\b/; <2> of course, the two greps could be combined... <2> /"/.../"/&&/\w/ <0> hmmm <0> are you sure the ... doesn't interfere? <2> not sure, nope <2> er, yeah, the &&/\w/ breaks it <2> duh <2> bt: if you want to play with that, it evaluates from right to left. print map "$_\n", split /\b/... then print map "$_\n", grep /"/.../"./, split /\b/; ... and so on, to see which each step does <2> print map "$_\n" just puts each list item on its own line <2> you could do for(...) { print "$_\n" } as well <2> er, what each step does, not which <5> hello <2> Hi tri! <2> Have you come to help me get Perl ported to iPod Linux? <5> no not really ;) <2> Oh. <5> sorry.... <2> Well, that's to be expected. <5> but maybe you or somebody else here can help me to get embperl running ? <2> Well, I don't know anything about embperl... but ask the question. Someone else who does might be unidle, or might unidle in the next not too long, or... <6> "tri" at 217.80.61.35 pasted "embperl problems... ?" (37 lines, 1.1K) at http://sial.org/pbot/16143 <7> Is the MANIFEST file used by ExtUtils::MakeMaker supposed to have CRLF line terminators on Windows? That is, should I set svn:eol-style=native when adding it to a Subversion repository? <2> tri: no one is going to look at the paste unless you explain what you're expecting to happen and what actually happens <5> i think i have build embperl right but the simple "hello world" example form the docs does not work. i only get the html file but not epl if i try to access ? <5> that is the "hello world" example http://perl.apache.org/embperl/pod/intro/IntroEmbperlObject.-page-3-.htm <8> tri's url is at http://xrl.us/katj <5> i only get "Hello World" in my browser, but i should get more something like "Joe's Website Hello World" ? <7> tri: you have DocumentRoot /var/www/bla/htdocs but Location /var/www/blabla/htdocs <7> I mean Directory <5> kahmalo: thx - but thats from pasting <5> does embperl log anything ? <9> i'm trying to do a small xml parser and i have a problem with a regexp: /<yweather:\S*(?:\s([^=]*)="([^=]*)")*\/>/. it only catches the last attribute. any ideas why? <2> It's been said a million times: you can't parse SGML with one regex. <2> you need a *grammar* <2> if you don't know what a grammar is, you need to learn, or else use an existing one <9> i only need to get the attribute list <2> in other words, your approach is fundamentally flawed. <9> something that would be called 'a quick hack' <2> it won't be 'quick' if you attempt the impossible <9> but i don't know where i'm wrong with the (?:...)* part <2> why is it that 90% of people asking for help in Perl channels won't accept anything as an answer except a completely written program or a few character change? <2> Why am I forced to watch people do the programatic equivilent of stuffing fire logs up their ***? <2> have fun with your regex, but leave me out of it <4> hey scrottie, <4> this may make life easier <2> hi bt! <4> hi's!! <4> the quotes use those silly quotation marks <4> U+201C + U+201D <4> open and close <2> bt: what, you want me to rewrite your program for you because you gave me faulty specs? <4> hell no! <2> oh, good <2> well, it wasn't many characters before, so life was hardly hard <10> can a html::parser object have more then one start and end handler? <2> why would you want to? just give it a closure that calls both <2> you probably want control over the order they run in, and calling both yourself from a little sub { } gives you that
<10> yeah, on second thoughts I wont need to <11> heya scrotum <11> err scrottie* <10> its getting late here :/ <10> mind is melting <2> x86: hey you four register piece of ****, what's up? <11> haha <10> thanks though scrottie <2> vin: mmm, mind melt! <2> vin: you're welcome <12> mmm, Californian Zinfandel <0> omg! \int! <12> hello botje <13> DCC SEND "string" 0 0 0 <0> ... <0> please take your two-year old mirc exploits somewhere else. <14> haha <15> what's the best way to check a user input is an integer? <15> $var =~ m/*[0-9]/ <16> DCC SEND "string" 0 0 0 <0> djw: something involving int, actually <0> i'm writing my first ruby script <0> it's surprisingly easy. <17> is there a way to distinguish between immediate values and scalar variables ? <18> what is an immediate value? <15> Botje: aye, that would probably be simpler <17> 'foo' vs $foo <18> do you mean you need to find out the name of a variable? <19> Prof_Vince, I would have thought the sigil to be pretty obvious <20> Prof_Vince: Scalar::Util might <20> Prof_Vince: Scalar::Util::readonly <17> right. thanks :) <19> I wonder why one needs that information.. <18> multiline blob of text, I want to remove all spacing at the end of the line , but keep the new lines. Can someone show me the regex for that? <17> wolverian: if foo $bar edit $bar, it would fail on foo 'bar' <18> I can probably help, but no idea still what you are trying to do Prof_Vince <20> he already has his answer :) <18> heh, ok my turn Khisanth ? <20> malchias: s/\s+$//mg; <18> thanks! <18> damn your good, works perfect <21> Guys, generally what's is the cause of hanging perl script? <21> My perl script just hang there.. <20> rope() <21> without giving any error message or segfault messat? <21> error message..I mean <12> perlover: it could be the zhgift problem <20> probably waiting for input <21> no <20> a segfault wouldn't hang <21> it prints some output already through STDOUT <20> of course warnings need turning on and there are ways to suppress them anyway <20> and how the hell are we suppose to guy what your code is doing without looking at it? <21> always on in my script, Khisant -w <21> script to big.. <12> perlover: if it's not zhgift, perhaps it's eulix? <21> zhgift? eulix? first time I heard about it <21> where in perldoc I can find it <12> I can't tell you that <21> integral, what's zhgift ? <12> I can't tell you that <21> ok <22> Heya <22> have you heard about that boy too? <0> sdakota! <22> Botje! <0> i'm learning ruby. it's fun! <22> That boy that committed suicide? <12> lots of people do that. <22> He was playing World of Warcraft, he had a double life <22> a life in real community, real life, and the social life inside the game <23> hi when i am trying to run cyradm i always get this error : http://pastebin.ca/44442
Return to
#perl or Go to some related
logs:
doom5 demo vm86() syscall generated signal #lisp #centos #web startx nslu2 transd gentoo xglx gentoo odbc ie4linux etch sources.lists
|
|