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 $!;
In reply to Re: File Handling problem
by toolic
in thread File Handling problem
by girish_01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |