in reply to *.txt

my @seqfiles = glob '*.seq';

--

flounder

Replies are listed 'Best First'.
Re: Re: *.txt
by Grygonos (Chaplain) on Sep 29, 2003 at 17:19 UTC
    2 things,
    1. Are you looking to emulate the behavior of ls from perl?
    2. Or are you looking for an purely perl way of accomplishing your task

    If you're simply looking to emulate the behavior of ls, then call it from perl, by using either
    system("ls *.seq"); or backticking ie my $cmd_output = `ls *.seq`;
    If you were looking for a purely perl way to accomplish this task, then my information is of little use to you, but if you were looking to emulate the behavior of ls from perl, regardless of it being a system call or a perl function, then maybe my comments are of some use.