@# 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 27 28 29 30



Comments:

<0> Wedge^: DBI->quote :-P
<1> oh ;)
<1> but how do I do if I want to prepare it for mysql for instance?
<0> ...
<2> you want to ->prepare() without being connected?
<1> yeah
<2> uhm... no
<1> I want to escape a query which I'm saving to a file for later use
<3> save it as is, and prepare it later? this is what bind variables are for.
<2> perhaps you could save the query with place holders and then the data items after it?
<3> your statement shouldn't need quoting when you write it.
<4> question,is there a module for win that allows you to detect if there is an active internet connection?
<3> Net::Ping? heh
<1> I suppose that's true, I could escape it later
<2> Wedge^: don't escape anything. use placeholders.
<2> let the driver worry about the messy details like that



<1> alright
<1> thanks
<5> I've an unusual perl regex problem. From a string of html, I need to extract a specific row (<tr>...</tr>) from a table. The specific row is identified by an arbitrary tag ({LINE}). I'm having trouble matching the specific row without matching every other row too.
<6> HTML PARSER
<0> eoin: If you use a regex we will all come to your house and kill you
<3> fatally.
<3> to death.
<2> eoin: HTML::TreeBuilder or HTML::PullParser or ...
<7> TokeParse
<7> r
<5> Problem is, this is in C++ using a regex lib based perl regex syntx. Are you saying this is not possible with a regex?
<2> omfg... the hounds have been sent out
<5> Apologies :)
<3> *giggle*
<7> perlbot pcre
<8> PCRE is crap. It is hardly comparable to Perl's regular expression engine. Don't bother inquiring for help with a regular expression in perl related channels as the answer you'll get will most likely not work since PCRE is missing most of the "powerful" features that perl's regex engine contains. See also: LPBD
<2> can't you link to a perl regex library?
<5> I'm using boost::regex
<9> pravus: You can embed perl! *snicker*
<0> eoin: yes. Regexes are entirely inappropriate
<5> I'll use spirit then. Thanks.
<10> hi, I'm a perl beginner, having a bit trouble with this function http://pastebin.com/563397
<11> The paste 563397 has been moved to http://sial.org/pbot/15923
<10> I think it's got to something to do with references to arrays as params in functions, not sure how to fix it, though
<10> the function returns just the first member of the list, rather than each member, as I would like it to
<10> any hints?
<3> tax0n: how are you calling it?
<10> file_links(@links)
<3> bingo.
<2> my @links = @_;
<3> and that $file argument will never be filled.
<2> if you want a ref: file_links(\@links); ... my @links = @{$_[0]};
<10> ok
<2> tax0n: you have to realize that an array p***ed into a sub is not just a single parameter
<2> an array ref, however, is
<12> taxon - perlref and such can explain this.
<10> so, if you p*** an array into a sub, does perl automatically expand it to fill @argv with whatever's in your array?
<7> tax0n yes, it's called "flattening"
<10> okay - that makes sense.
<12> taxon - perl -le 'sub f { print for @_ } my @a = qw/a b c/; my @b = qw/foo bar baz/; f(@a, @b)'
<10> so in file_links, when I declared my @links = $_[0], I was really just getting the first element
<2> @a=(1,2); @b=(3,4); foo(@a, @b); => foo(1,2,3,4);
<10> I read about the flattening affect in the perl cookbook, but the example I had was about p***ing in two arrays, and not mashing them together
<10> I misunderstood that obviously
<10> great- :)
<2> perhaps they used a ref (\@) ?
<10> I think they did
<0> tax0n: the rule is just that you _always_ p*** and return one list
<2> @a=(1,2); @b=(3,4); foo(\@a, \@b); => foo([1,2],[3,4]);
<2> note that foo only has 2 args instead of 4 in that second example
<13> I am getting a new necktop computer.
<14> whose neck?
<13> It has rbubberized thrusters.
<13> rubberized.
<10> brb
<3> did you get it from Abby Normal?
<3> she has the best necktop.
<2> hah.. that'd be cool. have a laptop with shoulder straps so you could walk around and work at the same time
<2> mobile cubicle
<10> :)



<10> fantastic!
<10> cheers, folks!
<12> pravus - what a terrifying idea!
<13> pravus: http://www.a2zsolutions.com/desks/walking/lapwalker.htm
<2> crap. now i have to wait 6 months for my patent to be rejected! argh...
<15> pravus: Prior art. Did you not read "Snow Crash"?
<2> there is no snow in texas... why do i need to read about crashing in it?
<13> OK, so I can't QUITE do flies at 75 pounds yet.
<13> I can do 5 reps at 62.5, though.
<15> Last time I tried, I was like 50 or so.
<2> i can't remember what flies are
<13> pravus: http://www.exrx.net/AnimatedEx/PectoralSternal/LVFly.gif
<15> That guy's kind of fat around the midsection.
<13> He is not low fat, and he is older.
<13> Not everyone who works out is low fat.
<16> important info for the health conscious cannibal
<15> Older? I'd guess like late 30s. That's not old. (please, that's not old)
<13> ew73: oldER, normal bodyfat for late 30's is about 15-20%.
<13> ew73: That is considerably higher than 20's.
<15> Sigh.
<13> ew73: It mostly makes for a different appearance, hence your observation.
<17> hi Yaakov
<15> I was more 'sigh'ing because I'm approaching 'late 30s' :(
<13> Hello, rick81.
<17> ew73: don't sigh yet :)
<13> ew73: I p***ed thema bit ago.
<15> I'm diabetic, I'm ****ed once I hit 50.
<2> ew73: not good. my brother is diabetic so i know what all you have to put up with
<13> 31-40yrsBelow 8% - 19% - 25%over 25%
<13> 41-50yrsBelow 11% - 22% - 27%over 27%
<13> too little, correct, overweight, obese
<15> pravus: I'm banking on having complete cyborg replacement bodies by the time I need 'em.
<2> ew73: you use the pump?
<15> pravus: Nope, old fashioned needles and bottles and finger-poking.
<13> Exercise, diet and sleep are the magic to keep me sane.
<17> Yaakov: you never sound sane to me :)
<13> Imagine how it would be without...
<2> ew73: same for my bro. he's too physically active and thinks he'll break it.
<2> Yaakov: i wish i had the time
<15> pravus: I'm not to concerned about that (I hear they're sturdy) but bottle + needle is much more portable than "thing taped to abdomen"
<16> plus you can use it to freak people out
<15> That's always terribly fun on the bus or somesuch.
<18> i'm bored
<18> programming doesn't sound fun right now, either
<19> pleased to meet you.
<18> don't make me kill you.
<19> would that end your boredom?
<15> sili_: There's always excessive *********ion.
<18> for a trivial amount of time
<18> ew73: eh
<18> i've got a girlfriend. no need for that
<15> There's ALWAYS a need for *********ion.
<18> maybe in your world. sicko
<15> One of the perks about telecommuting is you can pretty much take a little personal break whenever you want.
<18> i can't wait to get the business up and running
<18> once i have enough income i'm gonna go live somehwere interesting.
<20> Hey peeps, I have this string -->:skrye!skrye@88-104-40-68.dynamic.dsl.as9105.com PRIVMSG i wish to extract the nick in between : ! and then the entire hostname ie :skrye!skrye@88-104-40-68.dynamic.dsl.as9105.com into list context, so far i have -->my ($userhost, $user) = /^(:(.*):(\w+)\!)$/ Any advice would be really helpfull, thanks.
<7> sili_ what's the biz
<18> some data warehousing type software stuff
<18> among other things.
<7> /[^!]*?!([^@]*?)@/ prehaps
<7> i'm chasing the elusive get-rich-quick scheme or three
<15> I plan to win the lottery.
<18> if(/^:([^!])!/
<18> skrye: ^^
<21> i know i am in for a flaming/beating but can someome help me inprove on this... i am attempting to make dynamic array names.
<21> http://pastebin.com/563441
<11> The paste 563441 has been moved to http://sial.org/pbot/15924
<18> joesboxd3b: no.
<18> joesboxd3b: use a hash.
<20> Thanks a lot sili_, linuxnohow :P
<15> AHH PASTEBIN SUQS U **** I HATE YOU DIE SCREAMING
<21> i have had a hard time wrapping my brain around hashes


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

python
pclinuxos gdl
SRT with VLC
#css
#suse
run yukuake
69.60.118.92
postfix filter outgoing mail
gentoo broadcom gigabit dhcpcd
smtpd_mumble_restrictions postfix



Home  |  disclaimer  |  contact  |  submit quotes