Todd Chester has asked for the wisdom of the Perl Monks concerning the following question:
MyDocsBackup]$ ls -al backup1 total 12 -rw-r--r--. 1 matt users 0 Feb 5 22:06 .eraseme -rw-r--r--. 1 matt users 0 Feb 5 22:11 eraseme2 drwxr-xr-x. 2 matt users 4096 Feb 5 22:19 eraseme.dir -rw-r--r--. 1 matt users 0 Feb 5 22:16 eraseme.too
But not anything else.my @TestArray = @{$ftp->dir ( "/$BkRoot/backup1/.*" )}
my @TestArray = @{$ftp->dir ( "/$BkRoot/backup1/*" )} my @TestArray = @{$ftp->dir ( "/$BkRoot/backup1" )}
print "/$BkRoot/backup1 = \n"; my @TestArray = @{$ftp->dir ( "/$BkRoot/backup1/.*" )}; push ( @TestArray, @{$ftp->dir ( "/$BkRoot/backup1" )}); for ( @TestArray ) { print " $_\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need Net::FTP::dir help
by GotToBTru (Prior) on Feb 06, 2017 at 16:05 UTC | |
|
Re: Need Net::FTP::dir help
by Todd Chester (Scribe) on Feb 10, 2017 at 00:20 UTC |