in reply to $0 Problems

This is a known problem and has been discussed on p5p, check the archives from http://lists.perl.org.

--
perl -pew "s/\b;([mnst])/'$1/g"

Replies are listed 'Best First'.
Re: Re: $0 Problems
by strider corinth (Friar) on Sep 09, 2002 at 21:39 UTC
    Thanks for the pointer. I checked there, and it looks like they've found the problem's source, but no solution has yet been discussed, save hacking the source, obviously. Is there some other way to accomplish this, or is that my only option until the problem is fixed? I'm currently working with Linux and Solaris; an answer that would work with either of those would be great. Could something written in XS emulate it portably?

    --

    Love justice; desire mercy.
      I doubt it, but for the sake of argument, how would XS be better than fixing the source?

      --
      perl -pew "s/\b;([mnst])/'$1/g"

        The system I'm writing (a script/module combination) is going to be used on machines I don't control, so fixing the source isn't possible. If I could somehow use XS to provide myself with a subroutine that'd do it for me, my problem would be solved in a way that would work for the people who're going to be using it.

        --

        Love justice; desire mercy.