<pre>open( my $fh2, '<', "result_file.txt" ) || die( $! )) { while ( my $row = <$fh2> ) { chomp $row; my $dir = $row; print $dir,"\n"; #print "****$row****"; } close($fh2); }
use Cwd; my $curdir = cwd(); if (-e $dir && -d $dir) { print "$dir is an existing directory at $curdir\n"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)