develooper Front page | perl.fwp | Postings from September 2009

game: alphanumeric delimiter demonstration

From:
David Nicol
Date:
September 5, 2009 15:19
Subject:
game: alphanumeric delimiter demonstration
Message ID:
934f64a20909041438y16053e99v6f89ba482311b1e1@mail.gmail.com
{ my $match = eval '$_= q laurel;y subcostalis;s paperclip;m elite;$&';
is( $match, 'lit', 'alpha delimiters are allowed' ); }

The fwp challenge is, get out your simple regexen and pipes from
/usr/share/dict/words and produce an equivalent demonstration that
doesn't involve esoteric words like medical jargon and might even make
sense.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About