V
vijay
open(MAPFILE, $FTP_MAPFILE);
while(<MAPFILE>){
chop;
($user,$file) = split /=/;
if(uc($user) eq uc($userid)){
push(@files,$file);
}
}
close(MAPFILE);
open(MAPFILE, $FTP_MAPFILE);
while(<MAPFILE>){
#do something;
}
In the above code i open the file twice to read . How do i do
something without reopening the file
Th@nks
while(<MAPFILE>){
chop;
($user,$file) = split /=/;
if(uc($user) eq uc($userid)){
push(@files,$file);
}
}
close(MAPFILE);
open(MAPFILE, $FTP_MAPFILE);
while(<MAPFILE>){
#do something;
}
In the above code i open the file twice to read . How do i do
something without reopening the file
Th@nks