[plug] Introduction and Queries

Matthew Robinson matt at zensunni.org
Tue Feb 5 21:48:51 WST 2002


From: "Colin Muller" <colin at twobluedots.com.au> on  Tuesday, February 05,
2002 7:43 AM


> On Tue, Feb 05, 2002 at 03:37:46PM +0800, Peter Wright wrote:
> > I thought the first 's&&' was using the '&' as a regex (substitution)
> > boundary marker, which would mean "substitute nothing with '!msfQ!'"...
> > but if so then I can't understand the bit immediately after, ie. '&s'...
>

<snip>

> Then compare to this (which produces exactly the same result):
> s//!msfQ!/
> &
> s/$/utvK/
> &
> s/(Q)/\1!sfiupoB/
> &
> s/^/reverse Ibdlfs/e
> &
> s/^/#/
> &
> s/$/#!uojsq/
> &
> s/(.)/chr(ord($1)-1)/ge
> &
> s/(.*)/reverse $1/see
>
> Colin
>

Just about got it, the only bit left to explain is how I manage to get
output onto the screen :)

Matt

--
s&&!msfQ!&&s&$&utvK&&s&(Q)&\1!sfiupoB&&s&^&reverse Ibdlfs&e&s&^&#
&&s&$&#!uojsq&&s&(.)&chr(ord($1)-1)&ge&s&(.*)&reverse $1&see




More information about the plug mailing list