Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

(shockme) Re: Two files from one.

by shockme (Chaplain)
on May 22, 2002 at 15:24 UTC ( [id://168471]=note: print w/replies, xml ) Need Help??


in reply to Two files from one.

Just off the top of my head, here's some untested code that should get you started down the right path.
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://168471]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-19 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found