in reply to Re^3: Deleting first and last lines of a text file
in thread Deleting first and last TWO(2) lines of a text file

But where are we specifying the filename here ?. I mean from which file first and last lines has to be deleted? Thanks VJ
  • Comment on Re^4: Deleting first and last lines of a text file

Replies are listed 'Best First'.
Re^5: Deleting first and last lines of a text file
by 2teez (Vicar) on May 16, 2014 at 10:53 UTC

    But where are we specifying the filename here ?...
    "We" are using ARGV, the special filehandle that iterates over command-line filenames in @ARGV, from the CLI.

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me