#perl - Thu 12 Apr 2007 between 05:10 and 06:34

NY Lost Funds



hobbsAankhen``: of course there's not much point in a closure if it can't even change the closure var. :)
revdiablopush @subs, $i + 1; # ;)
Aankhen``Heh.
jqlbut, Aankhen``s way has the benefit of storing the value of $i after the loop finishes!
it knows the future
hobbsor the past...
revdiabloWell, you guys nailed it. Closures rip the time-space continuum.
Aankhen``Closures make my head hurt at 12 AM. :-(
Ani-_Aankhen``: there are actually two ways to solve your problem
Aankhen``: a) call foo() multiple calls, b) create a new lexical variable inside your for-loop
revdiabloAankhen``: Just imagine the subroutine reaching out and biting the lexicals up, ala hungry hungry hippo
Aankhen``revdiablo: Oooh, funky.
revdiabloAankhen``: It always helps me
jqlsub violation { my $i; my $sub = sub { $i }; $i++ while rand > 0.2; return $sub; } # omg, crazy!
Aankhen``eval: sub violation { my $i; my $sub = sub { $i }; $i++ while rand > 0.2; return $sub; }; violation()->()
buubotAankhen``: 1
Aankhen``eval: sub violation { my $i; my $sub = sub { $i }; $i++ while rand > 0.2; return $sub; }; violation()->()
buubotAankhen``: 8
Aankhen``Fun.
revdiabloAankhen``: Any more 'splainin' required or has it sunk in all the way?
hobbsrevdiablo: depends, can we call you Lucy?
jimloooseee...
buuAankhen``: You have a long, beautiful, cane.
I really love this movie.
amnesiacI love buu
well not really
buuamnesiac: This movie rocks.
So hard.
amnesiacwhich one dude?
buuamnesiac: _The Saint_
amnesiacuhm... haven't heard of it...
buuamnesiac: It's a movie based on a TV series from the 70s or 80s or something
Stars teh val kilmer
actionOwlEye grabs the remote and turns buu's TV off
OwlEyegrabs the remote and turns buu's TV off
jimOwww! Lye!
buuAlso, the internets is failing me.
integralGood morning.
cube it
workbenchOk, *now* I'm scared.
actionCPAN upload: Array-Slice-0.01 by KARASIK
CPANupload: Array-Slice-0.01 by KARASIK

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 

IrcArchive

NY Lost Funds