develooper Front page | perl.fwp | Postings from July 2003

Re: Fun - Each character at most once

Eugene van der Pijll
July 17, 2003 14:58
Re: Fun - Each character at most once
Message ID: schreef:
> Can anyone improve the above so that it checks the whole of <>, not just one
> line? Bonus points for an explicit multi-character message rather than undef
> on failure. 

#!perl -0234

contains no characters twice (except for the final \n), checks the whole
of <>, and prints a not-very-appropriate message on failure.

Eugene Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About