Apr 20, 2017, 9:21 AM
Post #2 of 2
You need to do it in 2 or 3 statements depending on if you explicitly close the file or not.
Re: [digioleg54] Convert shell head command to Perl
[In reply to]
1) use the open function to open the file.
2) read the 1st line into your var.
3) (optional) close the file.