| |
| |
| |
|
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> nachos: What about it? <1> ew73: at least francium is more explosive! I WINNAR <2> i dont understand what you mean, what block is making your head hurt? <3> infi: SODIUM IS CHEAPER! <0> nachos: The entire code. <2> lol why? <0> Hard to explain <4> Ok, so what in that paste doesn't make sense, nachos? <2> I think its a fairly good effort :-) <2> alester: the map block. <4> ok, that's equivalent to this <2> I'm just confused how it works, i pulled it from the map manpage. <3> I'd love to stay and chat, but I think I'm going to play civ4, then maybe watch some pr0n, then maybe read a book and go take a nap until it's not a ****ing INFERNO. <5> anyone know how to use Date::Parse to get the first day of a week based on a week number and year? <4> for my $_ ( @head ) { push @tmp, $_, shift(@line) } %tmp = @tmp; <0> ew73: You're ****ing infernos?
<2> its a bit of a learning curve because i think in C, so its a bit hard to break my old habits and get around how perl works. <2> for example <2> ($foo,$bar) = ($bar,$foo); <4> nachos: But that makes intrinsic sense, doesn't it? <2> i knew how it worked, but it had me a bit perplexed. <4> looking at it? <4> You're worrying about the "how" <2> exactly. <4> You have to let go and trust. :-) <2> :-D <4> Here's another one that I'm sure messes you up <2> you still working on that map example :-) <4> in C, if you do a "return &localvar" you know that's bad news. <4> because it's pointing to the stack. <0> Fun though <2> yeah, once it exits the function the data is destroyed. <4> But inj Perl we do "return \lexical" and it's fine. <2> but in perl <2> yeah, i was just about to say. <0> This is because perl is smart. <4> "return \$lexical" <4> nachos; It's also incredibly powerful. <0> I had to write C =[ <4> Learn to embrace references. <0> It was horrible. <4> Don't think of them as pointers. <2> oh yes. <6> I dont know much C but why would "return &localvar" be bad? <6> s/much/much if any/ <7> Local variables are on the program stack <2> alester: would it be wise to convert the foreach(@lines) loop into a map block ( returning @elements )? <2> if thats even possible, and how? lol! <4> nachos: You could, but it wouldn't be any clearer. <4> If you got it from the map perldoc page, it's going to be the best you'll get. <2> can you call return within a map block? <5> nachos: nope <2> okay <2> thanks <5> if you want to element to be ignored, you can map it to () <5> which will disappear when the list is flattened <2> okay. <2> god perl is good <7> Yes <7> map { $_->join } map { async {... <6> eval: map { return "foo" } qw(1 2 3) <8> Chris62vw: foo <6> kind of useless <6> eval: map { return "foo" } qw(); return "hi" <8> Chris62vw: hi <9> eek, I just found out that Robey Pointer is GAY! <6> who <6> My name is Robey Pointer, and I live in San Francisco, California. I'm 32 years old, 1.8m tall, and 65kg. I like to listen to and make music, write software, and bike. I'm gay. My email address is robey@lag.net, and I work at Danger, Inc. <6> he must be super fruity gay, expressing his height and weight in METRIC <6> only a flaming red hot homo would do such a thing <9> he wrote the original eggdrop bot <6> oh <9> I bet he has cooties <0> STEVEN SEGFALL <9> COOTIES! <2> the guy who wrote ircu2 is gay aswell <9> eek!
<6> what's up with all these homos on irc? <9> yeah <9> it's like Gay Capitol of the Internet or something <6> always trying to /ctcp FONDLE me and **** <10> wtf are cooties btw? <10> coldsores? <10> facial herpes? <11> beta bogons <12> how to run a file named foo.pl <0> CTCP COCK **** <6> perl foo.pl <13> petroleum_: the term usually refers to fictional germs <10> ahh <13> "ew, I've got girl cooties" <10> i didnt know that, thanks beth :D <13> but I think it originally meant lice, or something <11> and remove the useless .pl. Write a interface, not a liability <6> you weren't supposed to tell him!! <13> sorry, I just spout information <13> I can't help it <10> beth i ***ume you're female? <10> dont plug the leak :D <10> it's fun :P <6> stick your finger in the dike, keep the flood back! <13> don't you know that when you make an ***umption, you make an *** out of u and umption? <10> it's amazing to find a girl on irc, let alone on perl chan <13> I am not a dike! <10> hehe <13> yes, I'm a girl. And there are way more girls on irc than you realize. <6> no, I mean the... oh. <11> whoa, more than two? <6> I guess you aren't <13> WAY more than two <10> i suppose they just dont advertise it to stop being pestered ;) <11> no! <13> yes! <10> to avoid* <6> tape the blowhole! <0> petroleum_: For example, thrig and Chris62vw are girls. <6> (not trying to say you're a whale, but) <13> but usually they hide behind androgynous namees like "thrig" <0> Chris62vw: Dude, she's like 2 foot tall <10> hehe <13> did I really look that short to you? <10> how tall are you beht? <6> she's between 4 and 8 feet tall <0> beth: I guess not. For some reason I just thought you were much taller so the difference was more extreme than it should have been. <6> you know, no one ever asks the guys how tall they are <10> ok.. <10> everyone who's here <10> how tall are you <13> Chris62vw, how tall are you? <6> buu, did yall meet? <6> beth, 234.78 units tall! <0> Chris62vw: Yeah, I saw her at yapc <6> lucky buu. sorry beth <0> =[ <10> lol <6> buu, you're dangerous. you never know <0> Chris62vw: IT WAS JUST A TRENCHCOAT <10> ok, well since it's nearly 6am <10> im going to shoot off to bed <10> have a lovely evening all <14> Something that strikes me about most testing tutorials is that they don't really give the reader much motivation to write tests. <13> they usually have a sentence about tests being good. <6> so did you guys actually learn a lot of stuff about perl at the perl conference thingie? <15> beth: did I meet you? <1> Debolaz: actually, I thought that perldoc Test::Tutorial is really good and motivating, and it keeps you entertained the whole way through with its consoling, hand-holding sympathetic shoulder approach. <8> Debolaz: Type 'perldoc Test::Tutorial' in your shell or go to http://perldoc.perl.org/Test/Tutorial.html <13> hachi: yes, I think one of the nights we rode a train to dinner <0> Chris62vw: no =[ <0> Chris62vw: Granted I missed most of the p6 talks.
Return to
#perl or Go to some related
logs:
gentoo lspci emerge pcitools ubuntu gaim-autoprofile new etch install has 169.254 address #linux kxdocker settings #perl #perl #asm gentoo sdl recompile with fpic #ldap
|
|