[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Gender differentiation




> Y'know, if the militant feminists had their way and were "womyn", this
> wouldn't be a problem!

This problem needs the traditional UN*X toolkit approach. First, we
pre-process the questionable file. As a card(etc.)-carrying member of
the Male Conspiracy(tm), I am shipping this with a broken regex. 

#!/usr/bin/perl -i.pig
shift @ARGV;
open FILE or die;
while (<FILE>) {
	s/(wom)([ae])(n)/$1.$2=~m|[ae]|?"y":"Y".$3/ieg ; 
	print;
}

Now, we can simply do a search for /men/i . This is obviously the most
correct approach.

==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org