4

Return Full File Path To Array PERL

view full story
linux-howto

http://www.unix.com – Iam trying to load the full path of multiplie files in the same directory to an array if the filenames matches a pattern. The following is the current code; where $input=C:\test Code: # change to and open the comparison directory chdir("$input2") || die "Cannot change dir: $!"; opendir(DIR2, "$input2") || die "Cannont open dir: $!"; # read flie names to an array with user specified path foreach $file2 (readdir DIR2) {  if($file2 =~ /lds/)   {   @files2 = join("\\", $input2,$file2);   } } close(DIR2); The above code i (HowTos)