testing for end-of-file

2004-08-04 Thread james derry
hi, all, the answer to my question in probably obvious to all but me, but i don't know how to test for end-of-file. basically, i want the conditional to test TRUE if $lineCounter eq $lineLength OR the end-of-file has been reached. i can't find how do this in my learning perl or the perl faqs i'

Re: Need to write a pop3 attachment fetch program

2004-07-22 Thread james derry
i should have mentioned that this is a modified script from lincoln stein's book, network programming with perl, which i highly recommend. james james derry wrote: this might not be the best-written script, but might this help? #!/usr/bin/perl # file: pop_fetch.pl #text attachments are

Re: Need to write a pop3 attachment fetch program

2004-07-22 Thread james derry
this might not be the best-written script, but might this help? #!/usr/bin/perl # file: pop_fetch.pl #text attachments are first appended to a single file, then that file is re-opened for reading and its lines are first matched to one of two regular expressions. # depending on match, the line is