$Bill Luebkert <> wrote:
> Brian Raven wrote:
> 
>> Any one of the three methods used in the OP's script to expand a
>> filename pattern would have been adequate (if used correctly),
>> including Autoglob.
> 
> Not if you want to pass in a mask.  Autoglob won't let you.
> 
>>>>> foreach my $filemask (@ARGV){
>>> 
>>> @ARGV should have been emptied into @filemasks using my method or
>>> the global $filemask was unecessary using this method.  Assuming
>>> that @filemasks already has the masks from above, you could use
>>> something like: 
>>> 
>>> my @myfile;
>>> push @myfile, glob $_ foreach (@filemasks);
>> 
>> 
>> This is pretty much what Autoglob does.
> 
> Except you don't have a choice since autoglob automatically does it -
> you can't control when it does it or on which args. 

Good point.

> 
> On UNIX, you could just do 'some/path/*.txt' and get a mask in
> instead of expanding the glob.  Autoglob precludes that.

Well, any parameter that might contain a file-glob meta character. Yes,
if that is the sort of thing that you want to do then it would be wrong
to use Autoglob. 

HTH

-- 
Brian Raven 

_________________________________________

The information contained in this e-mail is confidential and solely 
for the intended addressee(s). Unauthorised reproduction, disclosure, 
modification, and/or distribution of this email may be unlawful. If you 
have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message 
do not necessarily reflect those of Atos Euronext Market Solutions.
_________________________________________



=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the 
intended addressee(s). Unauthorised reproduction, disclosure, modification, 
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately 
and delete it from your system. The views expressed in this message do not 
necessarily reflect those of Atos Euronext Market Solutions.

L'information contenue dans cet e-mail est confidentielle et uniquement 
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee. 
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail 
vous parvient par erreur, nous vous prions de bien vouloir prevenir 
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre 
systeme. Le contenu de ce message electronique ne represente pas necessairement 
la position ou le point de vue d'Atos Euronext Market Solutions.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to