@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26



Comments:

<0> it's almost 2.
<1> ablomen: <> in scalar context returns one line (hence program resumes after one line). in list context, it returns a list of all lines (hence program resumes after EOF).
<2> sphex: no i think that isnt it i tried loading it in an array and pressing ctrl+d
<3> friedo: arrays are lists, right. sorry my book uses the first term. So execute can't take a hash?
<1> LabThug: IIUC, list is a context. array is a value.
<4> sphex what if $/=undef?
<4> ^^
<1> Kev: then it's different
<5> LabThug: That's what the placeholders are for in the SQL. :1 => argument 0, there's no standard for "named parameters" in SQL.
<5> And I, for one, am glad.
<6> ?
<7> LabThug: arrays are storage.
<8> hi. i have a small perl script here, that prints "\x{1b}(K\x{1b}%@" in the console
<8> it is needed so I can read cp1251 in the console
<8> does anyone have an idea what does it do?
<1> __aquarius__: what's cp1251?



<9> LabThug: list is value, array is a container, they are not the same
<8> it's an encoding
<8> before I print that in the console, I don't read it
<8> and I start reading it after printing it
<1> __aquarius__: right, but what is it? is the one similar to latin1 used in windows?
<3> The lightbulb is starting to go off in LabThug's head
<8> er, cyrillic
<8> it's ansi
<8> I think that is some control sequence that changes screen map or something
<8> but I'm lost
<1> __aquarius__: 1B is ESC, so yeah, it's probably some terminal-specific escape code
<3> haha
<8> I'm wondering how to escape it in favour of a bash command
<8> ideas?
<3> I would like to write a function that accepts ($SQL, {column1=>value,column2=>value}) and creates a prepare/execute combo. Does this make sense? Is it a good idea?
<9> LabThug: sure, been done lots of times already though :)
<1> LabThug: what DB do you use?
<5> LabThug: Cl***::DBI
<3> I inherited MySQL, but am not ready to call it a DB yet
<2> sphex: a iv got it already, thanks anyway :)
<1> ablomen: so what was it?
<2> sphex: for some reason it does work when i put a print action after the <STDIN> thing :S
<1> LabThug: hehe :p. Well I think you shouldn't rely on an RDBMS only as a networked memory allocator to the point where you need a routine to abstract simple table insertions. I'd say you should rely on more advanced features of the RDBMS and implement some logic in the DB server itself so that you don't have to do things like that.
<7> ablomen: do you have no paste? if you do nopaste your code
<2> avinash240: sorry lost you there, nopaste?
<7> ablomen: paste your code here.. http://rafb.net/paste/
<7> ablomen: then send back the URL it gives you
<2> avinash240: lol ok ill do that but dont laugh to hard please ;)
<3> sphex, right now I'm trying to play clean-up. This inherited app has N number of BuildQuery,prepare,execute,CheckForError sections. I want to make one function that does that and then call that function N times.
<2> http://rafb.net/paste/results/kRk7jO75.html << the code
<10> The paste kRk7jO75 has been moved to http://erxz.com/pb/646
<2> its the $bla = <STDIN> part that doesnt do things right
<7> ablomen: looks like you're trying to slurp a file into $bla
<7> oh wait
<7> lol
<7> I don't know why I thought that was a file..i work with STDIN so little
<2> avinash240: well not realy, the thing shows you a set of playlists and you can take a number to select that playlist ;)
<2> lol :P
<2> well the code ist to readable ;)
<2> *isnt
<9> also missing strict and warnings
<9> and error checking
<2> yeah i know didnt add that yet, would be kinda usefull ;)
<7> ablomen: what problem are you having with the code
<2> avinash240: it doesnt go beyond the $bla = <STDIN> thingy (it does if i do a print action afther that but then it stops there)
<9> also, chomp not chop
<7> ablomen: are you learning perl from a book?
<9> ablomen: and your open probably failed
<9> ablomen: give us one line of sample output from print "$plnr2: $playlists[$plnr]\n";
<2> avinash240: yeah "learning perl in 21 days", iv god "programming perl" from orreyle 2 but i dont know any c and that najes that book a bit hard
<2> Khisanth: ok will do
<11> ablomen: the 21 days books have a bad reputation.
<9> rindolf: so do you! :P
<7> ablomen: Get "Learning Perl," otherwise you'll end up not understanding the language, getting turned off, and then I'll catch you on some Python hate blog six months from now
<11> Khisanth: these are different kinds of bad reputation.
<12> Jeez, Khisanth, you're one funny guy :p
<9> perlbot: beginning perl
<13> http://learn.perl.org/library/beginning_perl/
<9> avinash240: or that
<14> lol avinash240



<7> it's true man
<14> i got your back dude
<14> heh :P
<2> avinash240: lol i already dislike phyton ;) but ill try this book first and then buy the learning perl book, becouse here in holland you dont just run to your nearest bookstore for oreily books ;) thanks for the advice :)
<7> <rant>I have to listen to perl Hate mongering constantly..from people who don't even understand things like CONTEXT</rant>
<15> hmmm... shouldn't $value =~ tr/<stuff>//cd; detaint $value?
<11> Vaevictus: no.
<12> ablomen: 'here in holland'?
<16> hi all, any PCRE regex pros here?
<12> ablomen: Yes you do run to the nearest bookstore!
<15> rindolf: no?
<12> ablomen: There are just easier sites to sit in your chair and buy these books. Denk aan amazon, bol.com, enzovoorts.
<12> Oh, oops. A dutch sentance.
<15> i thought that was the way to do it. :|
<11> Vaevictus: you need to extract a value out of it using a regex pattern match.
<2> sdakota: same idea, im not quite old enough to have enough money/a credit card ;)
<12> ablomen, Me neither. 14?
<15> rindolf: hmm.. okay... seems that stripping characters should be sufficient... but oh well.
<2> sdakota: so you see my problem... not enough cash
<12> ablomen, Dads exist on the world to lend credit cards to their children.
<12> ablomen: Oh well.
<12> ablomen: Maybe not. But they can certainly be used for it.
<12> ablomen: And for the money... Just spare, don't spend everything on chips and stuff ;)
<2> sdakota: lol that should be hardware ;)
<12> Oh well.
<12> ablomen: Ofcourse, that's what I meant with chips ;)
<12> ablomen: You think I'm stupid? ;)
<7> ablomen: Unless i'm wrong this is a free online copy of Beginning Perl http://learn.perl.org/library/beginning_perl/
<12> ablomen: Ofcourse I knew you weren't spending everything on the sweet chips! *whistles*
<2> avinash240: lol thanks ill look into it
<2> sdakota: right... ;)
<12> Well.
<7> ablomen: no prob
<12> ablomen: You know, on highschool it seems like everyone is buying chips all the time. Chips bags everywhere.
<12> ablomen: And then these people think it's strange they never have any money.
<12> ablomen: Which is why I said that.
<2> sdakota: lol ok i understand now (finaly)
<12> ;)
<12> ablomen: Dus waar woon je ergens in Nederland? Welke provincie, e.d.?
<2> sdakota: den haag ;)
<12> Ah
<12> Ikke in Oosterhout, naast Breda.
<12> Noord-Brabant dus. ;)
<2> erg genoeg heb ik daar volgens mij nog van gehoord ook :P
<12> ieks
<17> Yuk. Speak in english :)
<12> wat heb je gehoord dan? ;)
<12> Yea, we're talking about bits and pieces.
<17> Where do you sdakota and ablomen live?
<2> the netherlands ;)
<12> This is about the first time I'm having an actual dutch conversation in #perl.
<12> Yep.
<12> That's that little country next to Belgium.
<12> ^_^
<2> lol no the capitol of denmark
<12> ablomen, do you know Uncyclopia? It's like wikipedia, with the only difference that it's filled with bull****.
<12> Uncyclopedia*
<12> Read this: http://nl.wikipedia.org/wiki/Uncyclopedia
<2> sdakota: nope never even heard of it, not that i ever use wikipedia
<12> ablomen: http://www.uncyclopedia.org/wiki/Main_Page
<2> lol looks promesing
<18> do any of you use a global constants file to store global variables?
<19> could anyone here give me some help on a issue with perl, I suspect it's related to some path-variabl
<19> e
<2> sdakota: lol wtf
<12> This is funny: http://www.uncyclopedia.org/wiki/Wikipedia
<12> Like: http://www.uncyclopedia.org/wiki/Content-free
<19> I'm trying to setup fuseftp, but it's complaining about missing dependencies, but I've already installed those with cpan..
<12> The best one: http://uncyclopedia.org/wiki/Holland
<12> This one is very funny too: http://uncyclopedia.org/wiki/Redundancy
<2> sdakota: lol the holland one is nice (door duitsers geschreven schat ik zo ;))
<12> Redundancy is het beste, denk ik
<12> hehe


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

#php
compile mplayer for etch
xming Can't connect
libperl++ c++
#debian
#css
#postfix
make menuconfig syntax error near unexpected token' '} fedora
#kde
#lisp



Home  |  disclaimer  |  contact  |  submit quotes