J
Jimmy
I have two files in a tmp directorie. each file have some data in
them. Some data are the same. I want to search in the files (with file
handles), and display the data on screen. But if they have the same
data in both files, display the data once. Here's my code but doesn't
work. Not all the data is display:
while( <FILEHANDLE> or <FILEHANDLETWO>)
{
$mesAlertes = <FILEHANDLE>;
$mesAlertesDeux = <FILEHANDLETWO>;
$final = ($mesAlertes, $mesAlertesDeux); #take data in both
#but display once if the
data
#is the two files...
print $final;
}
What's wrong???
them. Some data are the same. I want to search in the files (with file
handles), and display the data on screen. But if they have the same
data in both files, display the data once. Here's my code but doesn't
work. Not all the data is display:
while( <FILEHANDLE> or <FILEHANDLETWO>)
{
$mesAlertes = <FILEHANDLE>;
$mesAlertesDeux = <FILEHANDLETWO>;
$final = ($mesAlertes, $mesAlertesDeux); #take data in both
#but display once if the
data
#is the two files...
print $final;
}
What's wrong???