in reply to Re^2: HowTo retrieve the position in a file from the FH
in thread HowTo retrieve the position in a file from the FH
And we should get rid of the entire idea of filehandles-as-objects from perl6.
Why would you/we/they? Won't they be the 'standard interface'? But that's a ways down the road yet.
Snide remarks about using a standard module
Sorry. It wasn't meant, nor do I consider it to be, a snide remark. Simply sage advice for someone starting out with perl whom appears to be rather confused by the profusion of ways of doing things. Start simple and progress.
Pointing out that IO::File also had methods obj->tell() and $obj->seek(), that actually do what the OP is trying to do, might have been more useful to the OP than obscure references to opaque objects.
|
|---|