|No such thing as a small change|
Re^2: To glob or not to globby haukex (Bishop)
|on Jan 11, 2018 at 12:09 UTC||Need Help??|
Thank you for the reply!
Using it the way you describe will cause porting issues for older perl versions
You are correct that the :bsd_glob export tag wasn't added until Perl v5.16,
The :glob tag, now discouraged, is the old version of :bsd_glob. It exports the same constants and functions, but its glob() override does not support iteration; it returns the last file name in scalar context.
This works in Perl 5.6.2 thru 5.24, and warns about the deprecation of :glob in 5.26. What you can do in Perl v5.6 thru v5.26 (and hopefully beyond) is either
With the limitation of not being able to use the latter in scalar context until Perl v5.16 and up (Update: and the former not at all, unfortunately).
Does this in your opinion imply that File::Glob should be dual-lived?
No, I don't yet have a well-formed opinion either way.