A
a246456
Hello,
I am processing a list from a file which contains different paths to be
processed. for example:
/apps/oracle/a.htm
/apps/user/bin/a.gif
/apps/export/images/sdsd.gif
/apps/images/client/list/wqerew.gif
I want to split the filename and the path. Then i can use the path as input
to fetch the file from a remote machine through ftp.. I am able to get the
filename, but i am not able to get the full path with the slashes in it..
Thanks for your help...
----------------------------------------------------------------------------
--------------
open(LST, "content.txt") || die "File content.txt not found. $!\n";
open(FAIL, ">fail.txt");
$cont=<LST>;
chomp($cont);
while($cont ne "")
{
@line=split('/', $cont);
$file=pop(@line);
print "File Name is $file\n";
$cont=<LST>;
}
close LST;
I am processing a list from a file which contains different paths to be
processed. for example:
/apps/oracle/a.htm
/apps/user/bin/a.gif
/apps/export/images/sdsd.gif
/apps/images/client/list/wqerew.gif
I want to split the filename and the path. Then i can use the path as input
to fetch the file from a remote machine through ftp.. I am able to get the
filename, but i am not able to get the full path with the slashes in it..
Thanks for your help...
----------------------------------------------------------------------------
--------------
open(LST, "content.txt") || die "File content.txt not found. $!\n";
open(FAIL, ">fail.txt");
$cont=<LST>;
chomp($cont);
while($cont ne "")
{
@line=split('/', $cont);
$file=pop(@line);
print "File Name is $file\n";
$cont=<LST>;
}
close LST;