in reply to Re^2: glob behavior
in thread glob behavior
Once again you're dealing with different contexts. my $file = glob ... evaluates glob in scalar context, rendering it an iterator function, and my ($file) = glob ... evaluates glob in list context, rendering it a list function that returns a list, which can be empty.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: glob behavior
by vagabonding electron (Curate) on Mar 23, 2012 at 15:38 UTC |