Subj : pkt2txt perl script To : Maurice Kinal From : Jame Clay Date : Sat Feb 16 2002 04:34 pm Hi Maurice! >> Note that the current pkt2txt does have a bug in it; >> if there are more then one message in a packet, they're all getting >> put to a single text file... I *think* found & fixed what was causing that... It's in a subroutine that isn't needed in the pkt2html (or pkt2xml), one called wraparray. Basically what it does is formats the body of the message to a max of 80 charactors... Russ had it with a "local" applied to the array being used to do this, which is also what is returned from the subroutine... For some odd reason, that "local" didn't work on my system so I had it commented out. And when I added the "use strict" to the script, it started complaining about variables being out of scope so I put 'em all in a "my" construct at the beginning of the Perl script... That made 'em global variables, of course, & that was mostly just fine; except that that temp array in the wrapparray subroutine ended up also being a global & therefore accumulating the contents of the msgs if there are more than one during a packet toss... Don't why I didn't see that already... Couldn't remember if a local (to a subroutine) variable can still be used to return the value of that subroutine/function, so I just added a line to initialize the temp array to an empty string... I'll check after some more test runs to see if it corrects the problem, then put it into cvs... Jame --- BBBS/LiI v4.01 Flag-3 * Origin: Rocasa BBBS (1:120/546) .