it gives me error on third line where I try to open that outputfile.Is there any way I can create file when I run the program.Any Suggestion.Thanx#!/usr/bin/perl $Inputfile='filename'; open (IN,"<$Inputfile") or die "cannot open file: $!\n"; open (OUT, "+<$inputfile.out") or die "cannot open file: $!\n"; while (<IN>){ .... ..... print OUT; #print to $Inputfile.out file } #do something with content of $Inputfile.out
In reply to Creating file at run time by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |