in reply to Sort of like a file handle, but not
You're calling glob, which expands file name arguments. Since they're unquoted, each of the "file names" is returned to you separately. Your code is equivalent to:
Had you had wildcards in there, they would have been expanded as well.my $x; while (defined($x = CORE::GLOBAL::glob('hello there how are you', 0))) + { print "$x\n"; }
In Section
Seekers of Perl Wisdom