in reply to Re: Greed is going to get you, was Re: can't get $& to remove value in a substitution
in thread can't get $& to remove value in a substitution

Now you've confused me :) (Don't worry, it's easy to confuse me)

Why use while(//g) if there's only ever going to be one match?
--
Mike

  • Comment on Re: Re: Greed is going to get you, was Re: can't get $& to remove value in a substitution

Replies are listed 'Best First'.
Re: Re: Re: Greed is going to get you, was Re: can't get $& to remove value in a substitution
by zusuki-san (Initiate) on Oct 25, 2002 at 09:43 UTC
    erm, you're right...i meant to use non-greedy matching, oversight on my part :)
    thanks for pointing it out