[lug] Perl

Bill Thoen bthoen at gisnet.com
Sat Feb 11 15:29:15 MST 2006


On Sat, Feb 11, 2006 at 03:05:23PM -0700, Jeff Schroeder wrote:
> > But how do I get a '2' into the middle of two match variables?
> 
> Enclose the sub-pattern numbers in curly braces:
> 
> s/([NESW]) ([NS][EW])/${1}2${2}/;


Oh, doh! Of course... Thank you.



More information about the LUG mailing list