#perl
21 October 2007
Total 33 pages. You are browsing page 1/33.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sun Oct 21 00:00:34 2007
00:00 <****> Mmm. Pizza sauce.
00:05 <****> BYE [ALERT] Fatal error: Maildir: No such file or directory
00:05 <****> sweeeeeeeet
00:05 <****> how to substitute plain string -- like s/$a/my string/, where I'dont want to interpret $a as regex ?
00:06 <****> tockitj: you're looking for quotemeta or substr
00:06 <****> thanks
00:06 <****> See also: \Q
00:07 <****> yes, \Q$str\E, i forgot that :-))
00:07 <****> thanks
00:15 <****> ugh
00:15 <****> this thing is being a pain the ass
00:18 <****> hi
00:19 <****> GumbyBRAIN: Have I told you I hate kites? I just hate them. They make me want to vomit. Also, I don't like adjectives, so don't call this a 'tasty sandwich.'
00:19 <****> You don't use them.
00:19 <****> have any people good tutorial how i compile a cpp module to perl?
00:19 <****> i have use InlineX::CPP2XS but not work :\
00:20 <****> Hurley_: XS is the answer, I think. but I don't know anything about XS.
00:20 <****> yes
00:21 <****> god why is imap such a pain in the ass to setup
00:22 <****> buubot: bibleit
00:22 <****> tockitj: 19:032:010 Many sorrows shall be to the wicked: but he that trusteth in the LORD, mercy shall compass him about.
00:24 <****> boring
00:24 <****> buubot, jerk it
00:24 <****> Zoffix: COULD YOU PLEASE ELABORATE AND BY THAT I MEAN SUCK ON MY NUTS UNTIL YOU TURN PURPLE
00:27 * CPAN upload: Muldis-DB-0.5.0 by DUNCAND
00:27 * CPAN upload: Chart-Clicker-1.4.0 (++++ ) by GPHAT
00:35 <****>
00:35 <****>{ x }() ]
00:35 <****> Zoffix: [1,2,3]
00:44 <****> Zoffix: what?
00:46 <****> ... nothing
00:47 <****>() ]
00:47 <****> Zoffix: [222]
00:47 <****> You can't do that if your sub is an object method.
00:48 <****> sure you can, but the sub has no relation to any object
00:48 <****> Zoffix: sure you can
00:48 <****> How?
00:49 <****> not quite sure what you mean though
00:49 <****>foo( @_ ) };
00:50 <****> exactly like that?
00:50 <****>($obj)
00:50 <****> mauke: 42
00:50 <****> i stil dont see what you are doing?
00:50 <****> mauke++
00:52 <****> imMute, a hash dispatch table that calls methods of an object.
00:52 <****> I guess I'll just use anonymous subs
00:53 <****>(@args)
00:53 <****> means in perl? I have no experience in perl at all and I have to read a perl bit of code.
00:53 <****> Magotari, perldoc perlvar
00:53 <****> Magotari: perldoc perlvar
00:53 <****> Thank you.
00:53 <****> imMute, yes, that's what I am doing.
00:53 <****> GumbyBRAIN, forget it
00:53 <****> It looks like, but it just launched it.
01:27 * CPAN upload: Apache2-ASP-1.16 by JOHND
01:33 <****> i've got a string with one or multiple dots in it, i'd like to strip all the dots out of the string...how shall i do that?
01:34 <****> majmun, s/\.//g;
01:34 <****> mhm
01:34 <****> and multiple slashes?
01:34 <****> i mean
01:34 <****> /var/../www/./fooo shall become /var/www/foo
01:34 <****> hm, that's far more complicated than i thought
01:34 <****> eval: $_="foo.....bar....baz..."; y/.//d; $_
01:34 <****> Caelum: foobarbaz
01:34 <****> that sounds like a bad idea
01:35 <****> because in this case a directory can have dots too
01:35 <****> waait
01:35 <****> Are you validating paths in a CGI?
01:35 <****> uuh...
01:35 <****> majmun: you do know that dots in a path mean something
01:35 <****> since when is /var/../www/ == /var/www/ ?
01:35 <****> s/validating/sanitising/
01:36 <****> hehe new record isolating the Y factor from X.
01:36 <****> yes, but i mean, a directroy e.g. /var/www/some.thing may exist
01:36 <****> bennymack: :'D
01:36 * iank GumbyGumby gumbybrain victoly
01:36 <****> gumbybrain is gumbygumby.
01:36 <****> gumbybrain is gumbygumby.
01:36 <****> gumbybrain is gumbygumby.
01:36 <****> even /var/www/some..thing - so stripping of all multiple dots won't solve that problem
01:36 <****> STFUBOT
01:37 <****>
01:37 <****> majmun: seriously, are you sanatising paths in a CGI?
01:37 <****> majmun: what problem?
01:37 <****> i've got an external authentication-script, written in perl for a ftp-server
01:38 <****> it seems that the server doesn't accept directories like /var/../www - it closes the connection then, but right now i don't know how accurate that is
01:38 <****> eval: $_='..../so/lame/../lame/..../looom/..'; s#(^|/)\.+(/|$)#/#g; $_
01:38 <****> Zoffix: /so/lame/lame/looom/
01:38 <****> what about /so/la.me/ ?
01:39 <****> or /so/la....me/ ?
01:39 <****> majmun, '/var/../www' is NOT '/var/www'; it's '/www' FYI
01:39 <****> majmun, TIAS!
01:39 <****> FYI, TIAS ..? sry, i just know about "STFU" and "RTFM"
01:39 <****> /so/../la/me....//fa/../le/te..do
01:39 <****> yes, but /var/www/../../ is /
01:39 <****> majmun, For Your Information... Try It And See
01:39 <****> gosh
01:39 <****> eval: $_='..../so/la....me/../lame/..../lo...............oom/..'; s#(^|/)\.+(/|$)#/#g; $_
01:39 <****> Zoffix: /so/la....me/lame/lo...............oom/
Total 33 pages. You are browsing page 1/33.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
