On Wed, 30 Jan 2002 14:17:01 +1100, [EMAIL PROTECTED] wrote:
>but then I remembered a post by Perl Monk tilly (something
>about a color chart) where he used glob in a most perverse way.
>I had never done this myself, however, so I started with a small
>program:
>
>@a = glob('|y|{a,e,i,o,u,y,}||c');
>for my $x (@a) { print "x=$x\n" }
>
>This produced a list of just the type I wanted!
OK, for the people who haven't seen that post... how does it work? Even
on stupid Win98, FGS!
Isn't glob() supposed to return only files that actually exist?
$, = $\ = "\n";
@a = glob('|y|{a,e,i,o,u,y,}||c');
print @a;
-->
|y|a||c
|y|e||c
|y|i||c
|y|o||c
|y|u||c
|y|y||c
|y|||c
--
Bart.