#! /usr/bin/perl use strict; use warnings; my $dir = "/root/dir"; opendir(BIN, $dir) or die "Can't open $dir: $!"; my @array = grep { -T "$dir/$_" } readdir BIN;
In reply to Re: Read a list of files into an array
by Roy Johnson
in thread Read a list of files into an array
by monkeybus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |