|
|
|
|
|
by kbenson
4208 days ago
|
|
I agree that's the behavior you would want for that example. That is almost the behavior you get when use use File::Glob's bsd_glob function. For some reason it instead appears to return the last alphanumerically sorted match instead of the first. I've submitted a bug about that as well as the general lack of documentation on the true behavior of the CORE::glob() function, as outlined in my other comment. |
|
If you want the first element of the list, you should say exactly that to the compiler, i.e. force list context and take the first element: