Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Reading two lines per loop iterationby mattr (Curate) |
on Jun 09, 2007 at 13:15 UTC ( [id://620179]=note: print w/replies, xml ) | Need Help?? |
Are you saying there are a lot of cost_time lines all together? If it's just one (i.e. they come in Day/cost_time pairs) then a simple string replacement would solve the problem. Otherwise just remember the content of the last Day line and insert the data into any subsequent ones that don't start with Day.
In Section
Seekers of Perl Wisdom
|
|