Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
No such thing as a small change.
 
PerlMonks

RE: Re: how do i reset a filehandle?

by Zoogie (Curate)
 | Log in | Create a new user | The Monastery Gates | Super Search | 
 | Seekers of Perl Wisdom | Meditations | PerlMonks Discussion | 
 | Obfuscation | Reviews | Cool Uses For Perl | Perl News | Q&A | Tutorials | 
 | Poetry | Recent Threads | Newest Nodes | Donate | What's New | 

on Jun 01, 2000 at 07:11 UTC ( #15757=note: print w/ replies, xml ) Need Help??

in reply to Re: how do i reset a filehandle?
in thread how do i reset a filehandle?

Just to clarify lhoward's answer:
The second parameter for seek is a position, the third parameter is what the position is relative to:

0 Relative to the beginning of the file.
1 Relative to the current position.
2 Relative to the end of the file.

So,

  seek HANDLE,0,0
means to move to index 0 relative to the beginning of the file.


Comment on RE: Re: how do i reset a filehandle?
Select or Download Code
Login:
Password
remember me
What's my password?
Create A New User

Node Status?
node history
Node Type: note [id://15757]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (15)
YuckFoo
jdporter
holli
blokhead
Khen1950fx
kennethk
thezip
Eyck
pileofrogs
LanX
splinky
ssandv
xjlittle
MikeDexter
pramod8785
As of 2010-02-09 23:11 GMT
Sections?
The Monastery Gates
Seekers of Perl Wisdom
Meditations
PerlMonks Discussion
Categorized Q&A
Tutorials
Obfuscated Code
Perl Poetry
Cool Uses for Perl
Perl News
Information?
PerlMonks FAQ
Guide to the Monastery
What's New at PerlMonks
Voting/Experience System
Tutorials
Reviews
Library
Perl FAQs
Other Info Sources
Find Nodes?
Nodes You Wrote
Super Search
List Nodes By Users
Newest Nodes
Recently Active Threads
Selected Best Nodes
Best Nodes
Worst Nodes
Saints in our Book
Leftovers?
The St. Larry Wall Shrine
Offering Plate
Awards
Craft
Snippets Section
Code Catacombs
Quests
Editor Requests
Buy PerlMonks Gear
PerlMonks Merchandise
Planet Perl
Perlsphere
Use Perl
Perl.com
Perl 5 Wiki
Perl Jobs
Perl Mongers
Perl Directory
Perl documentation
CPAN
Random Node
Voting Booth?

What level of existential comfort do you require?

Palace
Executive suite at the best hotel
Regular hotel in a decent part of town
Motel
Boarding house
Sleeping Bag on Couch in Basement
Any port in a storm
Camping under the freeway overpass
Jail
Other

Results (283 votes), past polls