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

Channels


#perl

09 October 2007


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

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

--- Log opened Tue Oct 09 00:00:02 2007
00:02 <****> What a conversation killer, dngor!
00:03 <****> there is no such thing as a tied directory handle in perl, is there?
00:04 <****> override readdir?
00:05 <****> yea i guess. but i don't want to completely override readdir. i was hoping there would be something equivalent to the tied filehandles but for directories.
00:06 <****> opendir/readdir are such simple operations, it hardly seem worthwhile.
00:06 <****> you can always fall back to the original readdir if it isn't one of "yours"
00:07 <****> simcop2387?
00:07 <****> yes, i could add an argument or something. i think that's what i am going to do.
00:08 <****> bless the handle into something, test ref
00:09 <****> anno-: yep. my tied handle thingy would work for directories also
00:09 <****> is there a function in perl similar to escape() in php that automatically adds \ in front of all necessary characters so you can insert into mysql?
00:09 <****> quote is part of DBI
00:10 <****> or DBD::MySQL
00:10 <****> or you could parameterize your queries
00:10 <****> quotemeta(), "\Q"
00:10 <****> tom___: learn to use DBI properly.
00:11 <****> Botje: thanks. I wasn't looking for an answer. A put down is much more helpful.
00:11 <****> tom___: I was going to followup with a link to the tutorial..
00:12 <****> perlbot: placeholders
00:12 <****> You want placeholders: http://www.geekuprising.com/create_better_perl_and_sql_with_placeholders
00:12 <****> I thought php had something like add_backslashes for SQL queries
00:12 * jagerman snickers
00:13 <****> jagerman: almost. it's called addslashes.
00:13 <****> doesn't PHP have something called magic quotes, too?
00:13 <****> Botje: Err, but it adds *back*slashes?
00:13 <****> jagerman: yes! brilliant, isn't it?
00:13 * CPAN upload: WebService-Google-Reader-0.01_3 by GRAY
00:13 * CPAN upload: Net-SFTP-Foreign-1.31 by SALVA
00:13 * CPAN upload: PDL-LinearAlgebra-0.06 by ELLIPSE
00:13 <****> lol don't hate on php
00:13 <****> Too late.
00:13 <****> octagon: I'm not, we're just describing it.
00:14 <****> whew
00:14 <****> Easily confused.
00:14 <****> The fact that a description of PHP seems like hatred is just your naturally distaste for utterly disgusting things.
00:15 <****> s/ly//
00:15 <****> hm
00:15 <****> what is largest perl powered e commerce site?
00:16 <****> there should be a bot in the room that will process things like 's/ly//' in your last message
00:16 <****> Amazon, probably.
00:16 <****> bizrate.com, amazon, ticketmaster...
00:16 <****> actually nm
00:16 <****> jobs.perl.org everything there
00:16 <****> octagon: no there shouldn't :)
00:16 <****> octagon: i had one once. it gets annoying. quick.
00:17 <****> yes, hobbs, i realized how dumb that idea was a second after i finished typing :)
00:17 <****> when you have a hammer everything starts looking like nails
00:17 <****> unfortunately
00:18 * jagerman cues buubot
00:18 <****> Anyone know what a ping exit code would be if there is a packet loss percentage? I can find any info...
00:19 <****> man ping doesn't tell?
00:19 <****> ping on linux exits with 0
00:20 * jagerman would expect 0
00:20 <****> packet loss is not a failure to ping
00:20 <****> unless you set a packet count for minimum number of packets in a certain amount of time
00:20 <****> JAGERJAGERJAGERJAGER.
00:21 <****> "The ping utility returns an exit status of zero if at least one response was heard from the specified host; a status of two if the transmission was successful but no responses were received; or another value"
00:21 <****> but that's just me
00:21 <****> buububuububububuububuubbuu
00:21 <****> " If ping does not receive any reply packets at all it will exit with code 1. If a packet count and deadline are both specified, and fewer than count packets are received by the time the deadline has arrived, it will also exit with code 1. On other error it exits with code 2. Otherwise it exits with code 0."
00:22 <****> ahh..
00:22 <****> YAAAAAAAAAAAAAAGER.
00:22 <****> mikefoo: now look it up on your system. these things differ.
00:23 <****> does anyone here do RPC-ish stuff from *nix to Win32?
00:24 * jagerman shudders
00:24 <****> yeah, me too. but i'm past that now.
00:25 <****> this is off topic, but is there a bot in haskell ? or prolog ?
00:25 <****> yes.
00:26 <****> Look at lamdabot in #haskell
00:26 <****> thanks
00:26 <****> lambda or lamda
00:26 <****> what about a rubot?
00:26 <****> anno-: yup will do, thanks =)
00:33 <****> lambada
00:34 * f00li5h meows at #perl
00:34 * apeiron meows at #perl too.
00:34 * LeoNerd would rather roar at it...
00:34 <****> /foreach user /say $0: meow
00:34 <****> ok
00:34 <****> say I save soem text out put to memory
00:35 <****> *** Irssi: Unknown command: foreach user
00:35 <****> can I then do queries against that same thing while in memory?
00:35 <****> apeiron: there's a script for it
00:35 <****> so craper memory wise
00:35 <****> instead of reading it each time
00:35 <****> cheaper
00:35 <****> apeiron: foreach_user.pl
00:35 <****> f00li5h, Ahh, cool.
00:35 <****> apeiron: I use it on my bitlbee channel sometimes
00:35 <****> f00li5h, Ahh, yeah, makes sense.
00:36 <****> f00li5h, /foreach user /say $0, I'm going elsewhere, bitch. Smell ya later.
00:36 <****> on #perl, i'm pretty sure it's flodd-out time
00:36 <****> apeiron: yeah, and if you use it for /k, you need to make sure you're at the end of the list ^_^
00:36 <****> f00li5h, heh
00:37 <****> .oO{ can you rm / ? }
00:37 <****> hrm... .oO should be a quotelike that appends
00:37 <****> $foo .oO{ ... } # although there's a filter on cpan that makes the .oO's "comments" on variables
00:38 <****> see Acme::ESP
00:38 <****> anno-: that'd be the one


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

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


Tutti i nuovi CAP Italiani. Come ottenere il database completo