The filehandle should be outside the parentheses, like print TEMP $_; Also, you didn't close your files close FIC; close TEMP;
Franck Collineau wrote: > Hi! > > I have the follwing code: > > #!/usr/bin/perl -w > open(FIC,"/home/collineau/Perl/Programmes/01_informatique/sauve/c0111_05.htm") > || die "Impossible d'ouvrir $!\n"; > open (TEMP,">/home/collineau/Perl/Programmes/01_informatique/sauve/temp.htm") > || die "Impossible d'ouvrir $!\n"; > while (<FIC>) > { > print (TEMP $_); > > } > > > > The temp.htm file is empty !! > > Can anybody help me ? > > > Franck > > -- Thomas S. Dixon Applications Analyst II Pediatric Cardiology Medical University of South Carolina -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]