Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: seek question

by stevieb (Canon)
on Feb 09, 2017 at 21:05 UTC ( [id://1181592]=note: print w/replies, xml ) Need Help??


in reply to Re: seek question
in thread seek question

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

seek $FH, $. = 0, 0;

Replies are listed 'Best First'.
Re^3: seek question
by Anonymous Monk on Feb 10, 2017 at 16:48 UTC

    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.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1181592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found