"Jorge R.Colaccini" wrote:

> I need to process several files passing a wildcard filename  as arguments as
> in:
> 
> perl p1.pl *.txt

It depends on what you're doing.

the glob() function will return a list of matching files (but may call
an external shell or glob program to do so).

        my @files = glob('*.txt');
        foreach my $file (@files) { ... }

Also, the <> operator will return the same thing:

        my @files = <*.txt>;

Also see the File::DosGlob module for more flexible wildcards.

-- 
Ned Konz
currently: Stanwood, WA
email:     [EMAIL PROTECTED]
homepage:  http://www.bike-nomad.com

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to