grebki has asked for the wisdom of the Perl Monks concerning the following question:
which will create a list of configfiles (-cf) and a list of textsub files (-ts). The problem is that @ARGV keeps expanding the file globs so I can't tell what switch a given file is supposed to be associated with. I would like to be able to hold off the file-globbing until I've identified which array to stuff the globbed files into. I've come up with an inelegant way of doing this, which is to assume that any files appearing after a given switch belong to that switch's array until I hit a different switch. But that just feels so *wrong*. Any ideas? -Grebkimicrogen -cf *.cfg -cf /users/someone/goofy.cfg -ts *.vh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I stop ARGV from globbing all over the place?
by broquaint (Abbot) on Jul 23, 2002 at 17:37 UTC | |
|
Re: How can I stop ARGV from globbing all over the place?
by Abigail-II (Bishop) on Jul 23, 2002 at 17:39 UTC | |
|
Re: How can I stop ARGV from globbing all over the place?
by Chmrr (Vicar) on Jul 23, 2002 at 17:39 UTC | |
|
Re: How can I stop ARGV from globbing all over the place?
by dpuu (Chaplain) on Jul 23, 2002 at 17:45 UTC | |
|
Re: How can I stop ARGV from globbing all over the place?
by dimmesdale (Friar) on Jul 23, 2002 at 17:40 UTC |