in reply to Here document syntax, what is $0 (was: Newbie need a clue)

Thanks, dudes. This helps. I'm still a little baffled by exactly how that regexp works. It looks like it would replace every instance of 'any character' in the script name with a '#'. What is making it stop at the last slash?

Replies are listed 'Best First'.
Re: Re: Newbie need a clue
by voyager (Friar) on Mar 29, 2001 at 07:30 UTC
    the # in this case is the delimiter (since it's searching for a /). first thing after the "s" is the delimiter; often a /, but not always.
      Ah! Of course! Now I see it. Forgive me, I've only been at this stuff a few weeks.