At 12:49 -0700 5/25/99, Mark Yannuzzi wrote: > Is there a 'reset' file command, or option for OPEN in Perl, or do you >need > to CLOSE and OPEN the file again if you wish to read it line-by-line from > the beginning? > Whichever you prefer. > > In looking through the Camel book, it appears that the 'seek' function >would > be the way to do this: > > seek FILEHANDLE,0,0; Yup. There is a rewinddir for directories but no corresponding rewind for files; you have to write it yourself using seek. Or close and re-open the file. -- -- |\ _,,,---,,_ Vicki Brown <vlb@cfcl.com> ZZZzz /,`.-'`' -. ;-;;,_ Journeyman Sourceror: Scripts & Philtres |,4- ) )-,_. ,\ ( `'-' P.O. Box 1269 San Bruno CA 94066 '---''(_/--' `-'\_) http://www.cfcl.com/~vlb http://www.macperl.org ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org