[plug] Introduction and Queries

Peter Wright pete at akira.apana.org.au
Tue Feb 5 15:37:46 WST 2002


On Tue, Feb 05, 2002 at 03:20:53PM +0800, Colin Muller wrote:
> On Tue, Feb 05, 2002 at 03:02:34PM +0800, Craig Ringer wrote:
> > > 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
[ ... ]
> > Wow.
> 
> Looks perfectly clear to me. Which bit, exactly, can't you understand?

I'm trying to understand it, but am getting lost in a maze of twisty little
ampersands, all alike...

This is where I start to lose it:

  s&&!msfQ!&&s&$

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'...

...and I'm now thinking "isn't '&&' supposed to be a logical and, much like
in C?"

Dammit.

> Colin

I can certainly say it uses the ampersand character very effectively. :)

Pete, Just Another Perl Fan But Not Quite _That_ Much Of A Fan.
-- 
http://akira.apana.org.au/~pete/
If at first you don't succeed, destroy all evidence that you tried.
		-- unknown



More information about the plug mailing list