| |
| |
| |
|
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> thanks, integral. <1> GumbyBRAIN: memoserv <2> simcop2387: felony. Relony is for perl function `ulimit' found. <3> heh <0> Gumbybrain: be perlbot <2> Daveman: Perlbot karma perlbot. <0> o.O <0> Gumbybrain: I am intrigued by your suggestively paradoxical philosphies... <0> simcop :) <4> Just subscribe to his newsletter^WRSS feed, alrady. <4> ready <1> AHA! i know how to make the new algorithm for my webcam, i want it to try to lower the white area, so i just detect how many pure white pixels there are (that aren't moving) and bam i get a white area i can use to alternately adjust the exposure <1> now how to weigh the two algorithms against each other so i don't get problems with constantly alternating exposure rates <0> simcop, can you see atoms yet? :) <1> Daveman: no i don't have a large enough magnifying gl*** yet
<5> can I test if two references are the same using eq? <6> Use == <0> probably :p <5> okay <0> :) <5> hmm <0> simcop, nice work though, so far, btw :) <5> I've got a hash of hashes of arrays... <0> heh <5> hash is called %board, hashes inside are %board{$num} <6> crapweasel: Do you want a deep comparison? That's different from seeing if two references refer to the same thing. <7> hash my hashes <5> arrays are in $board{$num}{$num} <7> >=) <5> @board* <5> and this last array contains references to objects... <5> now I want to delete the reference that's the same as the reference in another variable <5> I've got foreach (@board{oldx}{oldy}) { } now <6> crapweasel: I stopped paying attention about the time you said "I've got a hash of hashes of arrays" <5> okay, revdiablo <6> Too much detail! <5> now inside that foreach, i've got a $_ which contains a reference, and a $human which also contains a reference <5> I can check with if($_ == $human) if the two references are the same... <6> Ah, I guess he's asking for an ignore <8> I hate perl <5> and if they are, I need to remove $_ from @board{$oldx}{$oldy} <8> April fools! <8> :) <4> You really had me going there. <8> lol <6> Good joke eggzeck <8> tyty <5> can I just delete $_;, and will $human still exist after that? <5> eggzeck++ <9> delete on a scalar? That's not going to work <0> integral, may I please message you? <10> and yet he denies being a beginner <8> I'm a beginner :) <0> Hi Khisanth <10> Daveman: crappy weather! <0> Khisanth, yes, but it'll be gone soon! :) <5> When I export methods from a package into someone elses namespace, and in that other package I call the method, will the cl*** of that method still be p***ed as the first argument? <6> You don't usually want to export methods <5> but for private use, it's much handier in this case <10> you can't actually export methods :) <6> You'd be better off using inheritance <11> Daveman: sure <0> Thanks. <5> but will it? <5> eval: use Exporter; <12> crapweasel: Return: <0> heehee <5> eval: package TestPack; use Exporter; our @EXPORT = "method"; sub method { my ($cl***, $arg) = @_; print "Cl***: $cl*** Arg: $arg"; }; method("Test1"); TestPack::method("Test2"); package main; TestPack::method("Test3"); method("Test4"); <12> crapweasel: Cl***: Test1 Arg: Cl***: Test2 Arg: Cl***: Test3 Arg: Error: Undefined subroutine &main::method called at (eval 126) line 1. <5> !!! <5> In all cases, it doesn't give the cl*** name at all?! <10> of course not <10> it's not a method call without the ->, of course you can fake it <5> that goes against all of the things I learned in the Camel.. <5> Oh, yes. <5> My bad.
<5> so it only gives the package name when using -> ? <6> Uh, yeah <3> you didn't "use TestPack" in "main" <3> so the importer never got called <5> eval: package TestPack; use Exporter; our @EXPORT = "method"; sub method { my ($cl***, $arg) = @_; print "Cl***: $cl*** Arg: $arg"; }; method("Test1"); TestPack::method("Test2"); package main; use TestPack; TestPack::method("Test3"); method("Test4"); <12> crapweasel: Error: Can't locate TestPack.pm in @INC (@INC contains:) at (eval 126) line 1. BEGIN failed--compilation aborted at (eval 126) line 1. <5> that's what I was afraid for, merlyn <13> w00t: http://sqlonrails.org/ <3> And you can't "use TestPack", because ... yeah, there you see. <3> you can TestPack->import though <5> eval: package TestPack; use Exporter; our @EXPORT = "method"; sub method { my ($cl***, $arg) = @_; print "Cl***: $cl*** Arg: $arg"; }; method("Test1"); TestPack::method("Test2"); package main; $TestPack->import; TestPack::method("Test3"); method("Test4"); <12> crapweasel: Cl***: Test1 Arg: Cl***: Test2 Arg: Error: Can't call method "import" on an undefined value at (eval 126) line 1. <5> eval: package TestPack; use Exporter; our @EXPORT = "method"; sub method { my ($cl***, $arg) = @_; print "Cl***: $cl*** Arg: $arg"; }; method("Test1"); TestPack::method("Test2"); package main; TestPack->import; TestPack::method("Test3"); method("Test4"); <12> crapweasel: Cl***: Test1 Arg: Cl***: Test2 Arg: Cl***: Test3 Arg: Cl***: Test4 Arg: Return: 1 <3> seee! <5> Same thing. <5> !! <5> eval: package TestPack; use Exporter; our @EXPORT = "method"; sub method { my ($cl***, $arg) = @_; print "Cl***: $cl*** Arg: $arg"; }; method("Test1"); TestPack::method("Test2"); package main; TestPack->import; TestPack->method("Test3"); method("Test4"); <12> crapweasel: Cl***: Test1 Arg: Cl***: Test2 Arg: Cl***: TestPack Arg: Test3Cl***: Test4 Arg: Return: 1 <5> !! <5> thanks! <3> Oh... you're calling a method wrong <3> you are supposed to call methods with -> <3> and not export them <14> Ok, slashdot has gone from "haha" to "god that's annoying." <5> slashdot? <14> (well, the skin. The site itself has been "god that's annoying" for years) <10> ew73: it's been there for ages <5> oh, that site <5> I already thought I heard of slashdot, but couldn't remember from what <14> I have to give them props: Games: Duke Nuken Forever Reviewed <10> dead horse <14> Yeah, yeah. But good dead horse. Have you /been/ to slashdot today? <15> ew73: it looks awsome <10> I never do <14> MONKEYS USE ROBOTS TO FLING POO!!!! GROSS!!! :) :) <16> "JrHacker" at 12.37.33.3 pasted "This is a bot to log on to telnet and grab notes." (47 lines, 1K) at http://sial.org/pbot/16570 <17> Could someone please take a look at that and tell me what's wrong? <5> I gtg :( <5> Cya <17> For one thing, it keeps telling me it's timing out on line 47. I can change line 47, comment it out, whatever... it still says it's timing out on it <4> Ugh, osnews and /. have defaced themselves for the holiday. What a waste of time. <17> Anyone have any suggestions? <10> on line 47? <17> That's what it says. <4> Of a file other than yours, right? <17> Nope <17> "pattern match timed-out at notebot.pl line 47" <17> I'm wondering how it can time out on a }. <4> It says "timed-out"? <18> heh <17> Yup. <4> That's an oddity that should make it easy to search for... <18> if($t->lastline = '/new notes for you on any subscribed board.*$/i') { # interesting...do you really mean that? <17> Uh... <4> Search for that message and you get a bunch of questions about that module. <4> Dunno about solutions, though <17> zshzn: I'm not sure. That part isn't really important, I just stuck it in there to experiment. <17> b0at: Hmm... looking. <18> notice that you are ***igning to $t->lastline, and neither making a comparison with == or expression matching with =~ <17> Oh... I had a ~ in there... must not have copied. <18> or comparison with eq, which would make more sense in that case...I've worked too much today <3> well - not eq <3> looks like "begins with" <19> eq works with strings and numbers while == works only with number, remember that, will save you time <19> hey zshzn <3> eq doesn't work with numbers <3> 5.0 is ne 5 <3> 5.0 does == 5 <3> so each for their own <19> but 4 eq 4 works <18> hi luda. <3> and actually, two numbers that are very close but not equal may both stringify as equal.
Return to
#perl or Go to some related
logs:
#css #awk atrpms wmvdmod #centos mysql inserting without auto_increment #python #web Sunstroke +homepathic gentoo madwifi Error inserting wlan
|
|