On Tue, Jul 11, 2000 at 11:20:15AM +1000, Rick Welykochy wrote:
> Doh! Try this:
> 
> :1,$s/$ord/$ord->/g
> 
> Note that vi like perl is a smarty pants.
> A $ is only interpreted as a line end if
> it is the last char in the pattern.

Except that in Perl the $ord would normally be interpreted as the variable
$ord, and thus the $ needs to be quoted (or some other quoting would be
required).

  Scott.


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to