in reply to bsd_glob returns non-existent files without GLOB_NOMAGIC

Your pattern has no special characters to trigger expansion, as soon as you add something like * or ? an empty list will be returned unless you activate the mentioned flags.

see File::Glob

DB<121> use File::Glob 'bsd_glob' DB<122> bsd_glob("/tmp/noexist*") DB<123> bsd_glob("/tmp/noexist") => "/tmp/noexist"

Cheers Rolf

( addicted to the Perl Programming Language)