| sontek | like s/search/replace/ finds the first one, I want the 2nd :P |
| jjore | You end up doing it manually. You could do something like my $times=0; s/.../ $times++ == 2 ? 'replacement' : $& /ge. |
| sontek | ok, thanks :) |
| jjore | Or you could use your pattern to search forward and then s/// from that offset on. |
| revdiablo | I 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. |
| revdiablo | jjore: I understand, I just wonder if there was a better solution for the problem he had jjore: It just seems a little too clever |
| jjore | Really? I'd probably write it out a bit longer but I consider using regexps to find offsets normal fair game. |
| revdiablo | Well, it really does depend on the problem Sometimes the clever solution really is the best But it makes me wonder nonetheless |
| Randal | that almost rhymes, some of the time |
| revdiablo | Ah yes, I am a master poet |
| Randal | and you know it! "stop that now, I really mean it" "anybody want a peanut?" :) |
| revdiablo | I was just about to say that! ;) |
| Randal | heh 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 |
| jjore | bummer. Are you sure there aren't another mandatory three or four rebuilding bootstrap steps? |
| Randal | yeah, 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 :) |
| cfedde | I 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 |
| Randal | It 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 :-) |
| Randal | I know I've had some slow days |