in reply to Re: Use of special character "*" to retrieve the contents
in thread Use of special character "*" to retrieve the contents
It's important to note there is a difference between readdir/glob and File::Find/find: the latter recurses into subdirectories as well. As for running external commands, I wrote about that, including the potential security risks, at length here. At the very least I would recommend using something like IPC::System::Simple's capturex, e.g. my @files = capturex("find",$path,qw/ ( -name *.ksh -o -name *.txt ) /);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Use of special character "*" to retrieve the contents
by karlgoethebier (Abbot) on Jun 07, 2017 at 16:54 UTC |