in reply to Extracting from output file

Hello AllPaoTeam, and welcome to the Monastery!

You open INPUT2 for writing, i.e. output, and OUTPUT2 for reading, i.e. input. That’s a confusing way to name your variables!

But the obvious problem is with the first argument to split:

@lines = split /s+/, $t2;

which says split on one or more lowercase ‘s’ characters. I think you meant:

@lines = split /\s+/, $t2;

which splits on whitespace. Beyond that, I doubt that we can help much without seeing the input text.

BTW, please consider adopting these best practices:

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: Extracting from output file
by AllPaoTeam (Sexton) on Aug 15, 2014 at 16:47 UTC
    Thanks for the quick response. I tried "@lines = split /\s+/, $t2;" and I still get the same output. I can send an email of the file to anyone who is willing to help me. Im lost on what to do.