in reply to Re^4: regex behaves differently in split vs substitute?
in thread regex behaves differently in split vs substitute?

That is exactly the same... tangential to the point.

You see Eeeeeeewwwwww :P is synonym for style tangent :)

Yes, named variables make more sense, if you're going to use them for something

If all you're going to do is print the match, you might as well use $1

  • Comment on Re^5: regex behaves differently in split vs substitute?

Replies are listed 'Best First'.
Re^6: regex behaves differently in split vs substitute?
by AnomalousMonk (Archbishop) on Oct 08, 2011 at 18:43 UTC
    Yes, named variables make more sense, if you're going to use them for something

    But that's the point: most code that gets written is not simple example code, but code that is "going to [be used] for something", hence the example of using named variables.