Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

28 October 2007


Total 31 pages. You are browsing page 1/31.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Sun Oct 28 00:00:54 2007
00:11 <****> thing
00:11 <****>e
00:11 <****> hanzou: The delimiters only go around the regex and the replacement
00:12 <****> s///e
00:12 <****>e, etc.
00:12 <****> We told you that a few times.
00:12 <****> Ahh I see.
00:13 <****> hanzou: s/foo/bar/e isn't s/foo/bar/e/
00:13 <****> Ahh good point.
00:23 <****> GumbyBRAIN: take it to the max
00:23 <****> Webdragon goes to the max.
00:26 <****> GumbyBRAIN: ? Dum dee dee, dum dee dum, ?
00:26 <****> Just say "dee.
00:34 <****> GumbyBRAIN: dongs
00:34 <****> Iank gumbybrain gumbygumby dongs dongs dongs dongs dongs dongs dongs dongs dongs dongs dongs dongs dongs dongs dongs.
00:37 <****> GumbyBRAIN: pumpkin pie
00:37 <****> maybe it's a piece of pie.
00:42 <****> GumbyBRAIN: cranberries
00:42 <****> Have a recommended host for someone that high up the cranberries - zombie.
00:43 <****> GumbyBRAIN: Take off every pig!
00:43 <****> And put it off of the pig.
00:43 <****> GumbyBRAIN: no cranberries for the enembies of cranberries (zombies)
00:43 <****> No cranberries for the week.
00:43 <****> indeed
00:43 <****> heh
00:43 <****> zombies hate anti-oxidants
00:44 <****> one would think they'd like them, prevent decomp
00:44 <****> hm, though you'd have to deal with anaerobic stuff...
00:45 <****> decomposition is what makes a zombie a zombie
00:45 <****> without that, they're nothing
00:57 * CPAN upload: Data-Page-Balanced-1.0.0 by KIMAHL
01:26 * CPAN upload: Test-Deep-0.099_a1 (+++++) by FDALY
01:27 <****> Gumbybrain: TOKE IT!
01:27 <****> indeed it would evolve h2.
01:29 <****> hi there
01:31 <****> what's wrong in http://pastealacon.com/110 ? I have the following error : Can't locate object method "POST" via package "http://www.easy-upload.net/" (perhaps you forgot to load "http://www.easy-upload.net/"?) at post-data-2.pl line 4.
01:33 <****> uh?
01:33 <****> read the docs
01:33 <****> perhaps you forgot a comma and/or quotes
01:37 <****>
01:38 <****> How do I interpolate some Perl into a regex at compile time? (I don't want it evaluated every time)
01:39 <****> regex.txt
01:40 <****> Metaxy_FW: read perldoc perlop
01:40 <****> iirc
01:40 <****> Metaxy_FW: qr operator
01:41 <****> Excellent, thanks.
01:41 <****> GumbyBRAIN: tokenize the world
01:41 <****> no thanks, i kind of master of puppets on the outside world.
01:42 <****> Seriously, does any FTP cpan repo work?
01:42 <****> mirrors.kernel.org does
01:42 <****> kernel.org?
01:42 <****> Specifically, ftp://
01:42 <****> ftp://mirrors.kernel.org/cpan/
01:42 <****> Because in all my years, all the ftp:// ones have done for me is time out.
01:43 <****> Wait! Sometimes they spit back a connection refused.
01:44 * Khisanth has been using ftp://cpan.mirrors.tds.net/pub/CPAN since archive.progeny.com was shut down
01:45 <****>post(...)
01:45 <****> ok
01:46 <****>POST, hence the error
01:48 <****> I wish comcast wasn't the only option for broadband here. :(
01:49 <****> they block FTP?
01:49 <****> no, torrents
01:49 <****> anything they detect as "p2p"
01:49 <****> gumbybrain: zergs
01:49 <****> Hej ja:vla fitta.
01:49 <****> :o
01:50 <****> GumbyBRAIN: now do it in Japanese
01:50 <****> Human child, anyway. If you type it in japanese.
01:53 <****> Is there any standard idiom for building a "match any" regex out of an array of strings? The naive way would seem to be: $ps = join "|", @listOfStrings; $pattern = /$ps/
01:55 <****> that is not quite correct
01:55 <****> I know it's not hygienic.
01:55 <****> that isn't the reason
01:56 <****> Go on.
01:56 <****> qr is missing?
01:57 <****> no, but it only matter in some cases
01:57 <****> if you have both foo and foobar in the list
01:59 <****> "match any" means "match any", I don't see the problem
02:01 <****> Yeah, I'm just thinking there's got to be a specific idiom for this, if not a specific function, it's such a common task.
02:03 <****> You need a quotemeta too.
02:04 <****> What if one of your strings is '(?=b)a'?
02:04 <****> I don't know. Maybe I'd just drop a map {quotemeta} in the join
02:04 <****> exactly
02:04 <****> Yeah, I was gonna say, it's unhygienic, but I left that stuff out for simplicity
02:05 <****> But good to know what the exact thing to do is for that.
02:16 <****> Metaxy_FW: join "|", map quotemeta, @strings; then: /^$ps\z/
02:16 <****> nope
02:17 <****> Nope?
02:17 <****> precedence of | vs ^
02:17 <****> Oops
02:17 <****> Metaxy_FW: join "|", map quotemeta, @strings; then: /^(?:$ps)\z/
02:17 <****> of course.
02:17 <****> then: /^(?:$ps)\z/
02:18 <****> :)
02:18 * jagerman makes up some nonsense about it being "unhygienic" ;)
02:18 <****> hehehe
02:18 <****> one thing is "match any", another thing is "I want exactly one of these" imho
02:19 <****> but this can be disambiguated only by Metaxy_FW
02:19 <****> Though to be honest, looping through the strings and doing eq would probably be faster.
02:20 <****> in case of "I want exactly this" I'd use List::Util::first


Total 31 pages. You are browsing page 1/31.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo