in reply to Two files from one.
while ($Input = <IN>) { if ($Input !~ /^Answer/) { if ($Input =~ /^(\d+)/) { $Number = $1; } print QUESTION "$Input"; } else { print ANSWER "$Number $Input"; } }
If things get any worse, I'll have to ask you to stop helping me.
|
|---|