it prints out a list of files in the given directory.#/usr/bin/perl -w use strict; my $var="/usr/local/apache/logs/"; my @file=glob("$var*"); foreach (@file){ print "$_\n"; }
In reply to Re: glob & variables
by fuzzysteve
in thread glob & variables
by cybermack72
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |