Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Forcing array context on a file handle

by Lotus1 (Chaplain)
on Oct 31, 2012 at 02:12 UTC ( #1001588=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Forcing array context on a file handle
in thread Forcing array context on a file handle

After you read a file you have to rewind it with seek if you want to read it again from the beginning. Here is how to set the filehandle back to the beginning of the file.

seek $fh, 0, 0;


Comment on Re^3: Forcing array context on a file handle
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2014-09-24 03:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (245 votes), past polls