in reply to Re: Using * character to open all Files in the directory
in thread Using * character to open all Files in the directory
The c:\> in Prayag's post gives us a good indication that they're doing this in a Windows (or DOS) environment, which (by default) doesn't expand asterisks, etc. (aka "shell globbing").
Instead, you need to all such expansion yourself, with something like...
my @files; push @files, glob foreach @ARGV;
... which breaks as soon as you want to open a file containing an asterisk or other expansion character.
Anyhoo, for further discussion, see the recent portable globbing behavior for command-line tool.
--k.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Using * character to open all Files in the directory
by BrowserUk (Patriarch) on Jul 06, 2002 at 00:05 UTC | |
by belg4mit (Prior) on Jul 06, 2002 at 01:34 UTC | |
by BrowserUk (Patriarch) on Jul 06, 2002 at 02:17 UTC | |
by belg4mit (Prior) on Jul 06, 2002 at 02:49 UTC | |
|
Re: Re: Re: Using * character to open all Files in the directory
by vek (Prior) on Jul 06, 2002 at 02:31 UTC |