in reply to [Windows] Given lower-cased file name, how to get actual file name (stored on filesystem) ?
How does the linked module address the problem? I fail to see documentation for "case-correction" in its documentation, unless you intend it to be a fancy wrapper around readdir.
$ md tmpblah
$ echo > tmpblah\aone.pl
$ echo > tmpblah\bOne.pl
$ echo > tmpblah\cONe.pl
$ echo > tmpblah\dONE.pl
$ perl -MPath::Class::Rule -le "print for Path::Class::Rule->new->file
Ah, I thought there would be an approach not involving ->all, which is IMO not different from just using grep /one.pl/ readdir $foo. But at least it has a nice syntax. I was hoping for something more direct there.
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (301 votes). Check out past polls.