in reply to
print vs push?
You need to reset the file pointer to BOF before reading in COMP. You can do that with seek (if you opened the file in read/write mode to begin with), or closed and re-opened the file in read mode. L
Comment on
Re: print vs push?
In Section
Seekers of Perl Wisdom