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"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re (tilly) 2: Sort of like a file handle, but not
by tilly (Archbishop) on Aug 21, 2001 at 22:48 UTC | |
by Cine (Friar) on Aug 21, 2001 at 23:01 UTC | |
by IraTarball (Monk) on Aug 21, 2001 at 23:10 UTC | |
by dmmiller2k (Chaplain) on Aug 22, 2001 at 00:21 UTC | |
by tilly (Archbishop) on Aug 22, 2001 at 01:38 UTC |
In Section
Seekers of Perl Wisdom