in reply to Re: Cumulative sum not working as it should be
in thread Cumulative sum not working as it should be

Thanks for your help. One more doubt please.......what does "$/" do before if?? I tried googling it out but could not get anything.

  • Comment on Re^2: Cumulative sum not working as it should be

Replies are listed 'Best First'.
Re^3: Cumulative sum not working as it should be
by LanX (Saint) on Jan 07, 2014 at 10:40 UTC
    see perlvar

           $/      The input record separator, newline by default.

    some ppl are too lazy to type "\n" :)

    Cheers Rolf

    ( addicted to the Perl Programming Language)