| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Comments:
<0> yes <0> it's good im answered <0> this is the second case, but the first field of the second row found will be in $canaux[6]? <0> or that overwrite the array each time fetchrow is called? <1> jdv79: if he was i wouldn't play the Monkey Island games now would i? <2> trombone: you have to call fetchrow_array() for each row returned... you might want to review it in the DBI perldoc <0> yes but with while (my @canaux = $yto->fetchrow_array()) (called 3 time for examples) do all the row will be in the same @canaux <0> or @canaux will be overwrite each time a new row is added <2> trombone: @canaux will be overwritten each time <0> thanks <2> trombone: that's what happens in an array ***ignment <3> trombone: @array = ...; will always overwrite an array <0> because the my in front of? <3> No, because of the ***ignment <0> DHO <0> sorry i am tired
<1> fetchall_arrayref is awsome <0> ok and how to add the content of the array @bleh to the end of @aaa pop and push is only for element i think <1> GumbyBRAIN: WGA can bite my *** <4> You can bite yourself in the ***. <0> but for a whole array <2> trombone: push/pop work for lists <5> do they? <2> well, push does <0> i can join(@array1,@array2) because @array1 will return all the element ? <2> trombone: (@a, @b) will flatten @a and @b into a single list <0> push(ARRAY1, ARRAY2) will work? <6> how dyou temporarily disable warnings in a codeblock? <7> no warnings <0> pravus or i need to make a list <0> push(array1, array2) seem logic <1> boy getting direct x 9 without WGA is a PITA <1> adante: what are you doing that you need to? <7> Not stricly perl-related, but does anybody know how to set background color in ncurses? $window->bkgd($attrib_from_COLOR_PAIN) doesn't work. <8> dabreegster: GET OUT! <8> heh, attrib_from_COLOR_PAIN <7> jkauffman: But it's warm in here <5> " <9> nelly song isn't it <7> COLOR_PAIR. Just noticed that. Was wondering why you thought it funny. <5> use safe; <5> er, strict <8> hey bpalmer <5> jkauffman. <6> simcop2387: um just printing some debug dump code <7> Oh, I have to define the color_pair dealy. How wonderful. <8> what is the color of pain, btw <7> RED <10> Is this: (?![^\d]*) somehow inherently flawed? <10> oh, oops <10> nm, got it <10> is it possible to shorten this? /\d(?=[^\d]*)\d(?=[^\d]*)\d(?=[^\d]*)\d(?=[^\d]*)\d(?=[^\d]*)\d(?=[^\d]*)\d(?=[^\d]*)$/; <8> dear god <8> take it away <10> jkauffman: that's the plan <11> rutski89: remove all (?=[^\d]*) <11> they don't have any effect <11> then you get \d\d\d\d\d\d\d$ which can be shortened to \d{7}$ <10> mauke: hmm <10> but what i want is to extract the last 7 digits from a string <10> I figured that (?=[^\d]*) would serve to get rid of the non-digit stuff <11> yes, that's what \d{7}$ does <10> mauke: even if there are non digits all mixed in? <11> oh, no <10> mauke: exactly <11> rutski89: [^\d]* can match the empty string. every character is followed by an empty string <11> that's why (?=.*) is useless <10> ahh, ok; gotcha <10> but what about <11> ((?:\d\D*){7})\z <10> wait... <10> aren't regexps greedy by default? <11> yes <10> so shouldn't (?=.*) have effect?
<2> rutski89: (?=) is 0-width <10> ah, ok <11> (?= ) means "followed by" <10> yea <11> it doesn't consume any input <10> oh, no? <10> is there anything that does? <12> that's why they call it "zero width" :) <2> rutski89: most of the regex syntax consumes input <2> rutski89: the zero width ones do not <12> rutski89: maybe you're looking for (?:), the non-capturing grouping operator (I just walked in, so I may be wrong) <10> hobbs: yea, that's what mauke suggested right before you got here: mauke: ((?:\d\D*){7})\z <2> wouldn't that grab the last 7 digits *and* all the stuff in between them? <10> mauke: /((?:\d\D*){7})$/ is matching the non digit chars as well <12> rutski89: of course it is <10> I want it not to <10> I want to extract the last seven digits out of a string, wherever they may be. <10> interspersed with non-digitg chars nor not <11> rutski89: uh, you can always remove the non-digits later <12> rutski89: I'd suggest m/(\d+)/g and just throw away all but the last 7 <12> rutski89: as the simple solution :) <10> hobbs: ahh, good idea <12> rutski89: although using what you've got and then s/\D//g on it could be more efficient for some inputs -- does it matter? <11> (my $d = $s) =~ tr/0-9//cd; $d = substr $d, -7; <10> hobbs: nope, s/\D//g is the perfect solution <10> yup <12> rutski89: er... <12> meh whatever ;) <10> Will the day come when perl interpreters are embedded into browsers and DOM is accessible via perl? <10> HTML DOM that is <8> hmm <10> or maybe it would be easier to write a perl-to-javascript translator <8> isn't there some way to make mysql output a whole database to standard output using DBI <13> rutski89: Perl 6 to JS would be easier. :-) <10> Aankhen``: yea, I've heard. But I have know clue why. What's the deal with Perl 6 and translation? <14> could you reverse every IP online on a cable/dsl connection in a reasonable amount of time ? <10> evilmnky: how do you mean? <14> rutski89: turn every IP known, into a hostname.. if it has one <13> rutski89: I have no idea what the deal is, only that Pugs has a Perl backend, Haskell backend, Parrot backend and JS backend (note that I'm not using the correct terminology, because I can't remember the difference between a runtime and a backend). <10> jkauffman: http://search.cpan.org/search?query=dbi+dump&mode=all <10> Aankhen``: hmm, i see <13> rutski89: At one point, back in days of yore, the JS runtime was the most advanced. <10> Aankhen``: you mean the JS runtime for for JS or the one for PUGS? <13> The JS runtime for Pugs. =) <10> ahh, ok <12> Aankhen``: the backend is the code for the compiler that enables it to target a given system; the runtime is the support code that allows the apps to actually run on that system. Where in this case, "system" == VM/language combo <13> hobbs: Ah, thanks. <13> So I guess it would be backend as I said up above. <1> GumbyBRAIN: when i was a little girl <4> Now lets not be a little girl. <1> heh <12> hmm, nifty thing: because Juerd's virtual servers are in .nl, if you route through the anycast 6to4 address you get sixxs.nl <13> GumbyBRAIN: Good evening gentlemen you have no chance to survive make your time. <4> Last year they made when writing to it, what can you survive? <8> GumbyBRAIN: Last year they made when writing to it, what can you survive? <4> They used to it. <8> GumbyBRAIN: They used to it <12> GumbyBRAIN: There were peasants singing and drummers drumming; the archer split the tree <4> it can be your tree and i must remember. Ok. <8> I like that one <7> GumbyBRAIN: Coffee, insomnia, incense. The trinity. <4> Substr() appears to be very relaxing. I like to know if the insurance companies agree its half of the incense, which came with my setup at work. <7> substr *is* relaxing. Every time I use it, I get that soothing, cuddly feeling. <12> GumbyBRAIN's place of employment provides it with incense? <4> Press whatever button you wanna do it with incense? <7> Hmm, I wonder where GumbyBRAIN works. <7> GumbyBRAIN: I am the eggmen, I am the walrus. Googoo ga chu. <4> I am full of subroutines and then found it disturbing, not least because i said watashi wa aigo ga wakarimasu to you knock some sense into the "lead" developer. <11> GumbyBRAIN is full of subroutines? no wonder ... <4> and there was just doing it for you, no? <1> GumbyBRAIN: pop goes the weasel
Return to
#perl or Go to some related
logs:
gnome vrsion of dapper dhcp resolves as 1.0.0.0 gentoo autoidentify konversation #ubuntu #python #perl Syntax error decompyle #ubuntu +copy files +ubuntu +home +sudo 82865g compiz
|
|