in reply to I try to write script which try to open a text file and read first line from it

What have you tried? What didn't work? What are you utilizing as learning resources? Much of the necessary syntax for your task is discussed in Files and I/O (perlintro), perlopentut and I/O Operators (perlop).

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

  • Comment on Re: I try to write script which try to open a text file and read first line from it