[tpm] Anomalous globular behaviour?

arocker at vex.net arocker at vex.net
Sat Apr 25 12:12:26 PDT 2009


> When looking at a flag file I use if (-e $file){...}
>
TMTOWTDI, and that actually looks more reasonable. I'd been dealing with a
glob for other reasons, so it was still lying around when I looked for a
tool.

> If the pattern does not match any pathname, then bsd_glob() returns a
> list consisting of only the pattern.
>
So if you read the small print on the tin, it does what it says. It's just
almost but not exactly how the shell behaves, which was what I was
expecting.



More information about the toronto-pm mailing list