http://www.perlmonks.org?node_id=1003470


in reply to Possible to refer to variable defined later in script?

use ACME::TimeTravel::CPUfolding

Or, you could rearrange the code to write to the file AFTER you figured out what to write.