Re: Dir Command to an array
- From: cdevers@xxxxxxxxx (Chris Devers)
- Date: Fri, 28 Oct 2005 17:25:55 -0400 (EDT)
On Fri, 28 Oct 2005 andrewmchorney@xxxxxxx wrote:
> I would like to execute a dir */s command in windows and save the
> output into an array. I know I can do this in perl by doing executing
> the following command in a perl script:
>
> @allfiles = `find / -print`;
You can, but you shouldn't.
The tool you're looking for, on Unix or Windows, is File::Find:
$ perldoc File::Find
It should, I believe, be a core module with recent Perl versions.
--
Chris Devers
?õùo ¯áVÑ?¸
- Follow-Ups:
- Re: Dir Command to an array
- From: Michael
- Re: Dir Command to an array
- References:
- Dir Command to an array
- From: andrewmchorney
- Dir Command to an array
- Prev by Date:
RE: Dir Command to an array - Next by Date:
Re: grep help request -- data fields max size - Previous by thread:
Dir Command to an array - Next by thread:
Re: Dir Command to an array - Index(es):