in reply to Re: count the occurrence of second line of a paragraph in a file
in thread count the occurrence of second line of a paragraph in a file

> which will overwrite the file each time

It's a different file every time (and, as the code is written now, one single time).

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
  • Comment on Re^2: count the occurrence of second line of a paragraph in a file
  • Download Code

Replies are listed 'Best First'.
Re^3: count the occurrence of second line of a paragraph in a file
by Discipulus (Canon) on Apr 29, 2016 at 07:24 UTC
    ah, right! you are correct!

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.