in reply to seek question

See also assign a value to $INPUT_LINE_NUMBER.
($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,

Replies are listed 'Best First'.
Re^2: seek question
by stevieb (Canon) on Feb 09, 2017 at 21:05 UTC

    oooh, I like the inline method of resetting $. that you provided in that thread:

    seek $FH, $. = 0, 0;

      Keep in mind though that the seek will fail for streams, named pipes and the like. (/me's thinking of all the kludgy softwares out there e.g. mplayer that couldn't properly read a playlist from a pipe.)