@# 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



Comments:

<0> I don't think the move of my post worked
<0> either way
<0> the error is on line 138 of trivia.pl
<0> I mean triviabot.pl, which is 40978
<1> line 138 doesn't call a subroutine
<2> it's an empty line
<0> err
<0> 148
<0> sorry
<2> that is foreach (@$score_ref) {
<0> and the function get_score is on 40977 line 143
<0> yeah
<0> it says that $score_ref isn't an array
<2> except 148 isn't making a call either
<1> Then you've clearly done something to make that so.
<3> cvncpu: it's not an array ref. It's a hashref.



<0> hrmm
<0> so what is the diffrence?
<0> and how do I change it from array to hash?
<2> what is the difference between a pig and a cow? :P
<0> this isn't my script, just a project I inherited
<2> it is already a hash
<0> so what does that mean?
<0> I mean
<0> how do I make it an array?
<0> or should I use something besides foreach for a hash?
<3> you don't want to make it an array. You just want to iterate over it properly
<0> okay
<3> except that the code that's producing that hashref seems to be broken as well
<0> errr
<3> sorry, blindness
<0> with the SQL Statement
<3> I just misread :)
<0> ?
<0> oh
<0> because that was broken before, and I managed to fix it
<0> but this I have no idea :/
<3> for (values %$score_ref) would be the quick way to rewrite that line. so long as you don't mind random order :)
<0> hrmmm
<0> I would prefer in order by scores
<0> but I can just change the SQL statement for that right?
<3> cvncpu: well then rewrite the whole thing to not be broken. selectall_hashref is a bit on the stupid side :)
<0> ORDER BY score DESC?
<3> cvncpu: no, wouldn't change anything
<0> hrmm
<0> I didn't write the selectall_hashref part
<0> but what could it be replaced with ?
<2> selectall_arrayref
<0> oh
<0> duh
<0> sorry I am a PHP guy :/
<3> and of course you'd have to rewrite the loop that does the printing for a new data structure -- but it's only 2 lines of worthwhile code anyway
<0> okay
<2> not really ...
<3> Khisanth: yeah, nevermind. I forgot about some of the more interesting features of selectall_arrayref :)
<2> return $obj->{dbh}->selectall_arrayref("SELECT * FROM scores ORDER BY score DESC", { Slice => {} })
<0> oh okay
<2> and leave the foreach on 148 as it was originally
<0> cus I was about to say that "uid" isn't right for the second part
<0> :D
<0> you guys rock!
<0> in order to concate to strings, I use + or .
<3> dot
<0> in a foreach loop, is there a way to get what iteration it is?
<3> no. keep a counter or foreach over indices instead of the array
<0> k
<4> Hm.
<4> One of my friends just said that David Wu (D-OR-1) could totally be elected President in 2012.
<4> Somehow, as muhc as I like the guy, I'm gonna have to go with "There is no way the red states would elect a non-white-honkey-good-ole-boy"
<5> his name is very cool though
<4> As a Congressman, he kicks ***.
<4> "Wu For Congress" is a totally awesome slogan.
<3> Putting the Wu back in w00t?
<4> (gamer vote)++
<0> is there a way to trim like 3 chars off a string?
<4> Nope.
<6> several, cvncpu



<4> Perl ****s with strings.
<0> lol
<0> I can only figure out how to trim whitespace
<6> chop a few times, substr, s///, ...
<0> errr
<0> so $score_string///; would trim 3 chars off?
<4> perldoc -f s///
<7> The perldoc for s is at http://perldoc.perl.org/functions/s.html
<3> no, that would just be a syntax error or three ;)
<0> thnx
<8> What modules do I use if I want to write a simple webformulat which allows me to transfer data with the post method?
<8> Just one form where a user can fillin some variables.
<2> a formulat?
<4> for mulat.
<4> for mullet
<4> MULLET-LOVER
<2> a web mullet? mullet over http? WTF?!
<4> HTTP/MULLET
<4> GIT /
<4> Glanzmann: perldoc CGI
<7> The perldoc for CGI is at http://perldoc.perl.org/CGI.html
<9> Wow.
<3> BUU
<9> I owned
<4> But did you use HTTP/MULLET
<9> No
<9> I used edge
<9> hobbs: Whatchawant?
<3> nothing
<9> Ohok
<3> well actually
<3> a million dollars. hand it over.
<9> k
<9> brb
<8> Who of you uses GIT?
<8> ew73: Thanks
<3> stupid git! ;)
<4> GIT /FRIDGE/BUD/weiser.bottle
<8> I love GIT.
<9> You forgot the version string.
<4> Dude.
<4> My Congressman ****s.
<4> http://blumenauer.house.gov/Issues/Legislation.aspx
<4> Thank god he got "National Bike Month" through Congress!
<2> that is decent :)
<4> It's a waste of time. I'd rather he be spending his efforts on oh, I don't know, IMPEACHING someone.
<9> snicker snacker snick
<9> SNICKETY SNAC
<3> snicker-snack, snicker-snack?
<3> ew73: mine basically doesn't _say_ anything on his website
<3> ew73: lots of words, very little information, and essentially nothing in the way of what _he_ might think about anything ;)
<3> That's okay, maybe he doesn't :P
<4> hobbs: Republican?
<3> ew73: negative. Paul Kanjorski, D-PA
<4> hobbs: Agh. The picture at the top left is downright creepy.
<4> He looks like one of those career politicians that's all pissed off at this new-fangled computer ****.
<3> ew73: haha. Well at least he's relatively moderate.
<4> As long as he didn't vote for that bankruptcy crap.
<4> Oh sweet jesus. From the a local mailing list:
<4> People who presented at the meeting: .... and Chromatic.
<4> From: chromatic@email.address: "Who's Chromatic?"
<4> From Random Person: "Your big brother."
<4> From Another random: "Sounds like a capital fellow."
<10> GumbyBRAIN: all my beautiful friends have all gone away
<11> BinGOs: They have a number of other walls had compressed the victim had fallen from the curtain of vapor beneath us, and throughout all the rest away down the temples, and put out the brains of the beautiful.
<4> Jesus christ.
<9> ****, bingos is here
<9> Time to sleep.
<9> WHY DO YOU HATE ME?
<4> GumbyBRAIN: Sleep is for the weak.
<11> ew73: I re-echoed - i aided - i surp***ed them in horrid and loathsome of all rattleborough, was brought to my horror; for i found it more on our experimental knowledge of anatomy is to find that they are weak a very scary one.


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

#debian
rjs onclick missing
#nvidia
Wise Zecke
#lisp
#gentoo
perl undo quotemeta
#linux
xine-default folder
javaldx: Could not find a Java Runtime Environment!



Home  |  disclaimer  |  contact  |  submit quotes