#perl
08 October 2007
Total 42 pages. You are browsing page 2/42.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
01:13 * CPAN upload: Set-Object-1.22 (+++ ) by SAMV
01:13 <****> heh
01:13 <****> its usually not =P
01:14 <****> That's what you think.
01:14 <****> heh
01:15 <****> anyway, thanks. the reason I copy it is to move it from a dbm hash to a memory hash. So it runs faster (I do a lot of lookups on it). The copying itself takes an insignificant amount of time but I would like to know if it is useful.
01:16 <****> /* Extensible reliable solution for optimal customer satisfaction with regards to direct non-opt-out marketing.
01:16 <****> what ?!
01:17 <****> Fucking firefox.
01:17 <****> static int public inline spamFourChonSlashProgSlash(options_t options, unsigned long* pReserved)
01:18 <****> Reserved!
01:20 <****> buu.
01:21 <****> iank.
01:22 <****> "nelgin" at 71.164.212.50 pasted "Getting Can't use string as a HASH ref while "strict refs" error in a module. Need help please." (27 lines, 1.1K) at http://sial.org/pbot/27923
01:22 <****> DWU DWU DWU
01:23 <****> dwu buu dwu buu dwu buu
01:23 <****> sounds like an a'capella song
01:23 <****> Nice.
01:23 <****> if I could get that perl module working, I'd be able to post the song to audioscrobbler :) I just hope someone looks at the pasteling url.
01:24 <****> dwu, !!!
01:25 <****> Zoffix: Unfortunately, while I'd love to stay and be all flirty, I'm off to crush my life a little bit more.
01:25 <****> dwu, how goes it?
01:25 <****> See you all from work.
01:25 <****> aha :D
01:25 <****> Not really a ":D" sort of thing. :/
01:25 <****> :(
01:26 <****> No help here I guess.
01:26 <****> nelgin, Without seeing your code it's next to impossible to determine what the problem is.
01:27 * apeiron wonders if that's a method that nelgin pasted that's using prototypes.
01:27 <****> So you want me to post code here even though it says "Don't paste here, use http://sial.org/pbot/perl" which I did?
01:27 <****> Well, that's declared with a prototype, but that doesn't get the benefit of one...
01:27 <****> nelgin, I never said that.
01:27 <****> nelgin, You pasted the code where the error occurs, the Audio::Scrobbler code, right?
01:27 <****> Ok, you want me to post the script that calls the module?
01:28 <****> Right gotchya.
01:28 <****> eh
01:28 <****> Smallest test case that demonstrates the problem.
01:28 * CPAN upload: UWO-Directory-Student-0.01 by FREQUENCY
01:29 <****> While you're at it, I'd mail the maintainer of Audio::Scrobbler and ask them if they're aware of the influence of prototypes on object methods.
01:29 <****> Ok, how do I add to, or do I need to create a newone?
01:29 <****> New one.
01:29 <****> ok
01:30 <****> "nelgin" at 71.164.212.50 pasted "Addl. info to http://sial.org/pbot/27923" (19 lines, 591B) at http://sial.org/pbot/27924
01:31 <****> So, what is the influence of prototypes on object methods?
01:31 <****> perldoc perlsub
01:31 * nelgin doesn't dabble in perl modules.
01:31 <****> Ok will take a look later.
01:31 <****> Eww, prototypes on methods.
01:31 <****> I guess my question is, is there a quick fix or is it a bit more complicated than that?
01:31 <****> the answer is: zilch
01:32 <****> nelgin, Without seeing your code, we have no idea.
01:32 <****> nelgin: You pass: LIST
01:32 <****> It requires: HASHREF.
01:32 <****> nelgin, The problem is likely *your* code, not the module author's.
01:32 <****> (though as we've seen, their code isn't 100% perfect either)
01:32 <****> apeiron: HIS CODE IS RIGHT THERE HAI PLEASE READ.
01:32 <****> Hmm, I was only using the example from the perldoc
01:32 <****> buu, Oh. Sorry.
01:32 * buu shrugs
01:33 <****> apeiron-- # learn to read
01:33 <****> nelgin: The docs seem to be out of date.
01:33 <****> nelgin, If you copied the example verbosely, it's wrong.
01:33 <****> er. verbatim.
01:33 <****> bleh.
01:34 <****> Well, feel free to compare my example code to the perldoc for Audio::Scrobbler and you'll see I used it as a guideline.
01:34 <****> Stupid I am, that stupid, I'm not.
01:34 <****> So, my code is broken or his is broken or his docs are out of date for his module?
01:36 <****> Yes.
01:36 <****> You can't answer yes to an or question ;) Have another go.
01:37 <****> brb need to take the dog out.
01:37 <****> Yours is broken. His is broken 'cause it uses prototypes on methods. If the docs don't tell you to use a hashref argument, then his docs are broken, too.
01:38 <****> So 'yes', as an inclusive "all three", is indeed correct.
01:41 <****> OK, so what's a "hashref" then?
01:41 <****> reference to a hash.
01:41 <****> It's a scalary containing a reference to a hash.
01:41 <****> er, scalar.
01:41 <****> You can also create anonymous hash references.
01:41 <****> I had scalary for dinner :(
01:41 <****> Looks like trees.
01:42 <****> OK, so I still have no idea what I need to do with my script. I guess I'll wait for the author to fix it.
01:42 <****> ... that won't fix your code.
01:42 <****> and his documentation.
01:42 <****> was it a referency to a hashy?
01:43 <****> anno-, Yesy.
01:43 <****> nelgin, That still won't fix your code.
01:43 <****> nelgin, I suggest perldoc perlreftut to learn about constructing hashrefs.
01:43 <****> I've been trying to finally learn perl. Seems like everyone else knows it. :-p. I'm wondering ... is the "my" function basically the equivalent of the "global" function in php?
01:43 <****> Ohhhh, I think I get it.
01:44 <****> TomCox: my creates a local variable
01:44 <****> (and it's not a function)
01:44 <****> Oh guess not.
01:44 <****> came up with a solution to my socket issue
01:45 <****> mauke: ahh, thanks got it. sort of like "set" in vbscript?
01:45 <****> or "var" in php?
01:46 <****> php has "var"?
01:46 <****> yeah
01:46 <****> TomCox
01:46 <****> TomCox, Have you read that?
01:47 <****> no. i'll look through it. thanks :-)
01:48 <****> I've been programming for years. Tried to pick up a perl book at the library but after knowing a bunch of other languages it's really slow learning from a book. I've just been picking apart others scripts to figure it out.
Total 42 pages. You are browsing page 2/42.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
