in reply to Re: Listglob
in thread Listglob

my @globlist = glob '*.{txt,aux}';

That is a shell glob expression, but we're assured it's portable.

Actually, that's a csh or ksh glob expression, not a shell glob expression. And since Perl would actually run on machines that didn't have csh (gasp!), it's not completely portable in the same sense as Perl.

However, the difference would probably be nil for most modern Perl users.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: •Re: Re: Listglob
by theorbtwo (Prior) on Apr 17, 2002 at 23:44 UTC

    However, there's little reason to gratitutiously break portablity when (glob('*.txt'), glob('*.aux')) would work.


    We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book

Re: •Re: Re: Listglob
by jsprat (Curate) on Apr 18, 2002 at 01:12 UTC
    Doesn't the glob funtion use File::Glob now? If so I think it would be 100% portable. (I'm sure you'll let me know if I'm wrong ;)