Hi Guys
I guess this is pretty simple
I want to remove the leftmost 53 characters in a string and return a string of everything that remains
i.e
@patharray contains
c:\inetpub\c:\inetpub\
I want to write
into a textfile
I tried something like this:
my $filelist = "$iwhome\\tmp\\filelist.txt";
open (FILELIST, "> $filelist"
;
foreach $item (@patharray) {
print FILELIST substr($item,10,10,""
."\n";
}
close FILELIST;
but that seems to chop the left 10 chars and only return 10 of the remaining...
can anyone suggest a better solution?
Many thanks in advance
Lucas Young
I guess this is pretty simple
I want to remove the leftmost 53 characters in a string and return a string of everything that remains
i.e
@patharray contains
c:\inetpub\c:\inetpub\
I want to write
into a textfile
I tried something like this:
my $filelist = "$iwhome\\tmp\\filelist.txt";
open (FILELIST, "> $filelist"
foreach $item (@patharray) {
print FILELIST substr($item,10,10,""
}
close FILELIST;
but that seems to chop the left 10 chars and only return 10 of the remaining...
can anyone suggest a better solution?
Many thanks in advance
Lucas Young