in reply to Writing on different output files.

Not quite sure what exactly you're looking for... but in your if statement, you will wind up printing everything to FIXFILE that doesn't meet the if condition. That may not be what you want.

I note that you also used $*=1; This is deprecated. I am wondering why you are setting the input record separator: $/ = "<DIVIDER>*</DIVIDER>"; That is almost certainly not doing what you want. You would be better off just using regexen to find <DIVIDER> and </DIVIDER>.

Replies are listed 'Best First'.
Re^2: Writing on different output files.
by Anonymous Monk on Feb 23, 2006 at 08:53 UTC
    The <DIVIDER> tags content varies, I've set this so that the data may be read by block. My main problem is that the data isn't parsed properly. Data are being placed in the outfile. I previously used this Redexp as record separator but didn't work
    $/=~/<(LN_FILE_DIVIDER_TAG)>.+<\/\1>/;
    Am I using the print command properly?