in reply to File Handling problem
Get rid of the backslash:i solved the problem by using open (FH_SECOND,"<",\$second_file) or die $!; but can i use the declaration $line_second=<FH_SECOND>; to save the a +line in the variable line_second
Now, line_second should contain the first line of your file, which you can confirm by printing it.open (FH_SECOND, "<", $second_file) or die $!;
|
|---|