riverrunner6
Programmer
Definate newbie to Perl and programming. I am attempting to script out a routine to search a file tree for a specific file. The code below works great on my local hard drive to produce a list of files but how do I work produce this list from a network drive?
Code:
#!/usr/bin/perl
use strict;
use warnings;
$Bentley = 'N:\building\'
@files = $Bentley<*.dgn>);
foreach $file (@files) {
print $file . "\n";
}
I am not doing this right using the array, any suggestions would be very helpful
D
Code:
#!/usr/bin/perl
use strict;
use warnings;
$Bentley = 'N:\building\'
@files = $Bentley<*.dgn>);
foreach $file (@files) {
print $file . "\n";
}
I am not doing this right using the array, any suggestions would be very helpful
D