#perl - Mon 2 Apr 2007 between 02:14 and 03:01

NY Lost Funds



sonteklike s/search/replace/ finds the first one, I want the 2nd :P
jjoreYou end up doing it manually.
You could do something like my $times=0; s/.../ $times++ == 2 ? 'replacement' : $& /ge.
sontekok, thanks :)
jjoreOr you could use your pattern to search forward and then s/// from that offset on.
revdiabloI wonder what he was doing anyway
Nobody considered an XY problem
jjore/$rx/ and substr( $_, $+[0] ) =~ s/$rx/ ... /
for instance.
revdiablo: I dunno. I've wanted to do similar things plenty of times that I just considered the plain old idea.
revdiablojjore: I understand, I just wonder if there was a better solution for the problem he had
jjore: It just seems a little too clever
jjoreReally?
I'd probably write it out a bit longer but I consider using regexps to find offsets normal fair game.
revdiabloWell, it really does depend on the problem
Sometimes the clever solution really is the best
But it makes me wonder nonetheless
Randalthat almost rhymes, some of the time
revdiabloAh yes, I am a master poet
Randaland you know it!
"stop that now, I really mean it" "anybody want a peanut?" :)
revdiabloI was just about to say that! ;)
Randalheh
IRC comedy is all about being the first to type it
apparently, installing ghc-dev via fink requires building it
that won't be done for six hours, if I recall
jjorebummer.
Are you sure there aren't another mandatory three or four rebuilding bootstrap steps?
Randalyeah, I know
ghc beats X11 for "time to build"
even gcc doesn't take as long as ghc
... http://ficlets.com/stories/1682
watching ghc build is like watching paint dry :)
cfeddeI wonder what percentage of my career I've spent idling while I wait for some batch operation (like an install or build) to complete.
rbrown__hehe
RandalIt can't be more than 10% for me
but not as small as 2%
rbrown__I just spent 15 min waiting for quickfix to build
:-)
RandalI know I've had some slow days

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 110 

IrcArchive

NY Lost Funds