in reply to printing the directories...
And I think you're making it more difficult than it is:
use Text::Table; my $t = Text::Table->new(qw(CASENAME SORTED CLEANED PROCEED)); for my $dir (glob '/home/folders/case*/') { my @res; for my $subdir (qw(sorted cleaned proceed) { if (-d "$dir/$subdir") { push @res, 'Yes'; } else { push @res, 'No'; } } $t->add(@res); } print $t;
Untested, but should work that way (or with small modifications).
See -d for documentation of -d.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: printing the directories...
by blazar (Canon) on Oct 23, 2008 at 20:51 UTC | |
by moritz (Cardinal) on Oct 23, 2008 at 21:03 UTC | |
by blazar (Canon) on Oct 23, 2008 at 21:14 UTC | |
|
Re^2: printing the directories...
by sugar (Beadle) on Oct 23, 2008 at 08:25 UTC | |
by johngg (Canon) on Oct 23, 2008 at 10:43 UTC |