hiiiiiiiii Can Any one Help me.....
I just printed the filename only by using this code .But i want to print the whole path of the file and which should be printed in line by line.Pls help me
#!usr/bin/perl
#use Cwd 'abs_path';
$var="d:/www.indiantempl es.com";
opendir(str,$va r);
@file=readdir(s tr);
#my $abs_p=abs_path ($var);
#print $abs_p,"\n";
for($i=2;$i<125 ;$i++)
{
open(Tr,">sec.t xt");
print Tr @file[2..125],"\n";
close(Tr);
}
print str $var ."\n";
close(str);
I just printed the filename only by using this code .But i want to print the whole path of the file and which should be printed in line by line.Pls help me
#!usr/bin/perl
#use Cwd 'abs_path';
$var="d:/www.indiantempl es.com";
opendir(str,$va r);
@file=readdir(s tr);
#my $abs_p=abs_path ($var);
#print $abs_p,"\n";
for($i=2;$i<125 ;$i++)
{
open(Tr,">sec.t xt");
print Tr @file[2..125],"\n";
close(Tr);
}
print str $var ."\n";
close(str);
Comment