#!/sw/bin/perl use strict; use warnings; use File::Glob ':glob'; my @files = </sw/bin/*>; foreach my $file (@files) { print $file . "\n"; }
I'm using Tiger. Here, it shows me all the files in /sw/bin.
In reply to Re^3: glob: where are the full paths?
by Khen1950fx
in thread glob: where are the full paths?
by 7stud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |