in reply to Re^2: replacing $` with ordinary capturing in global substitutions (!pos)
in thread replacing $` with ordinary capturing in global substitutions

Tested and it works fine for me.
__OUTPUT__ This This/is This/is/a test This This/is This/is/a test ~ borisz$ perl -V Summary of my perl5 (revision 5 version 8 subversion 4) configuration: Platform: osname=darwin, osvers=7.3.0, archname=darwin-thread-multi-2level
What perl version do you use?
Boris
  • Comment on Re^3: replacing $` with ordinary capturing in global substitutions (!pos)
  • Download Code

Replies are listed 'Best First'.
Re^4: replacing $` with ordinary capturing in global substitutions (5.6.1+)
by tye (Sage) on Sep 01, 2004 at 20:58 UTC

    Thanks. It's nice to know that this has changed. I'd never noticed it being considered a bug, so I wasn't expecting any change here.

    So downgrade the warning to it only not being portable to older versions of Perl. I got lucky and had versions of Perl handy that disagree on this feature; it doesn't work in v5.6.0 but works in v5.6.1 and likely stays (not)working for versions on each side of that division.

    - tye