in reply to Script Arguments and Wildcard Expansion under Windows NT
Your problem is that Unix expands wildcards before passing them to the program. Windows doesn't do this, prefering to let the program carry out it's own wildcard expansion.
You could get round it by adding another loop and using the glob operator.
foreach my $glob (@ARGV) { foreach my $file (<$glob>) { print("converting $file..."); open(FILE, "<$file"); my @lines = <FILE>; close(FILE);
Update: Abigail is right. I should have said "The default Windows shell doesn't do this".
--Perl Training in the UK <http://www.iterative-software.com>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Script Arguments and Wildcard Expansion under Windows NT
by Abigail (Deacon) on Jun 28, 2001 at 19:53 UTC | |
|
Re: Re: Script Arguments and Wildcard Expansion under Windows NT
by mvaline (Friar) on Jun 28, 2001 at 21:58 UTC |