On Thu, Sep 09, 2004 at 04:03:33PM -0400, Kripa Sundar wrote:
> 20: warn "blah blah\n" if (glob("~$arg") !~ m{^ (/\w+)+ /$arg $}x);
glob In list context, returns a (possibly empty) list of filename
expansions on the value of EXPR such as the standard Unix shell
/bin/csh would do. In scalar context, glob iterates through
such filename expansions, returning undef when the list is
exhausted.
Funny, I never noticed that behaviour before. AFAIK it's the only perl
function that behaves that way. Definitely a gotcha!
-Gyepi
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm