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