in reply to if elsif elsif prints all three.

Then if I put else {next}; That Totally screws up the out file.

Yes, it immediately skips the rest of the current loop body and moves to the next iteration. That means nothing will print for the current iteration. If that's not what you want, remove the next.

Replies are listed 'Best First'.
Re^2: if elsif elsif prints all three.
by wcj75019 (Acolyte) on Feb 27, 2008 at 21:47 UTC
    That is what I want. I want it to leave the file alone. But, it removes the line. leaving bgs) ;; on the next line. then adds the $bgs here document also.