Humor: Cargo Cult Programming

Kevin D. Clark kclark at CetaceanNetworks.com
Thu Nov 14 23:11:43 EST 2002


mod+gnhlug at std.com (Michael O'Donnell) writes:

> Heh.  All it takes is one additional backslash:
> 
>           :'a,.! perl -pe 's/^/\#/' 
> 
> 
> There - that wasn't so bad, now - was it?

No, that's reasonable.

I hesitate to mention this, because I'm about to make an unfair
comparison, but I have encountered versions of vi that wouldn't
let you escape these magic characters -- no amount of escaping would
do the trick   (IIRC, the vi that comes with Solaris suffers from
this). 

So, if vim acts more reasonably here, then I'd have to say that this
is a good thing.

Regards,

--kevin
-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc




More information about the gnhlug-discuss mailing list