Anthony Rumble wrote:
>
> On Mon, 10 Jul 2000, Rick Welykochy wrote:
>
> > Anthony Rumble wrote:
> > >
> > > s/\$ord\{/\$ord\-\>\{/g
> > >
> > > Why doesn't that work?
> >
> > Assuming this is perl:
> >
> > s/\$ord\{/\$ord\-\>\{/g
> >
> > changes nothing, unless "$ord" is found in
> > the current string $_
>
> Doesn't work in VI or sed.
>
> > BTW: What are you trying to accomplish? What is the spec?
>
> im trying to change $ord{ to $ord->{
> (Ie.. changing some perl source from a hash to a hashref)
>
in vi or vim (or sed even):
:1,$ s/\$ord{/$ord->{/g
--
Cheers,
Jim.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug