
November 30th, 2012, 04:20 PM
|
|
|
I do not see:
in your code in the first post.
Where do you have it. Please post a more complete code snippet, at this point seem things seem to be missing.
If you want to print to a file:
1. first open the file
Perl Code:
Original
- Perl Code |
|
|
|
my $outputfile = "result.txt"; open my "$OUT_FH", ">", $outputfile or die "cound not open $outputfile $! \n"
;
2. Then, whenever you want to print to the file:
Perl Code:
Original
- Perl Code |
|
|
|
print $OUT_FH "whatever you want to print \n";
3. Don't forget to close the file before you try to awk or grep it:
|