[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pre-release



On Thu, 10 Apr 2003, Jacques L'helgoualc'h wrote:

> Andrew D. Hwang wrote:
> > [...] The solution is to seek-and-replace:
> >
>
> Unfortunately, 'pair' often begins the line ...
>
> perl -pi.bak -e 's/(^|\s)pair(\s)/$1triple$2/g' *.xp
>
> should do the trick on well-formatted code.
>
Wow. That sort of thing isn't in the O'Reilly book...!

(The snippet didn't catch the string "(pair center," in a function, but
surely the test can be tweaked:)

--Andy

Andrew D. Hwang			ahwang at mathcs dot holycross dot edu
Department of Math and CS	http://mathcs.holycross.edu/~ahwang
College of the Holy Cross	(508) 793-2458 (Office: 320 Swords)
Worcester, MA, 01610-2395	(508) 793-3530 (fax)