in reply to How to perform single operation to each line in file

just to let us you know
why you $/ undefining
and also you foreaching
when am wanting whileing
  • Comment on Re: How to perform single operation to each line in file

Replies are listed 'Best First'.
Re^2: How to perform single operation to each line in file
by rammohan (Acolyte) on Jan 21, 2014 at 12:10 UTC
    $/ to read whole record and foreach is to read every line
      $/ tells readline or <> to read the whole file. foreach does not read anything, it just iterates a list. You give it a one member list: it contains the whole file as its only member.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Why don't you just read the file line-by-line?