There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Rather than opening and closing the file, how about opening it once and using seek DATA, 0, 0 to reposition yourself at the start of __DATA__? Anyone see a problem with this approach?
Cheers, Update: Oops. I keep forgetting that __DATA__ doesn't behave like a normal filehandle. See tye's answer below. Join the Perlmonks Setiathome Group or just click on the the link and check out our stats. In reply to (Ovid - seek)Re: Closing and re-opening the DATA Filehandle
by Ovid
|
|