D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Xmas perling

 

kevin wrote:
> Can any one see the syntax error in this perl script?
> 
> #!/usr/bin/perl
> 
> $word ="/usr/share/dict/words";
> 
> 
> if ($word
> =~ /([^aeiou]*a[^aeiou]*e[^aeiou]*i[^aeiou]*o[^aeiou]*u[^aeiou]*)/)
> { print "$1\n"; }

Syntax checks for me without a problem, though obviously the code isn't
going to work and the regex is insufficient :)

> I have the last question of my Family xmas quiz as how many words with
> all the vowels in and in the order of a e i o u 

abstemious, arsenious and facetious are the only three, I believe.

James

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html