http://qs321.pair.com?node_id=1215686


in reply to Ordering of print statements

I'm assuming that's all inside of a while loop you are using to read the file. Instead of printing when you match the line, store the value in a variable. Then after the while loop, print it all out.
if ($line =~ /\s*APP>\s*LumaIntraMode\s:(\w+),\suse_intrabc:(\d)/i) { $values{Luma_mode} = $1; } # etc...
Then after the loop
print "Luma Mode: ", $values{Luma_Mode}, "\n"; print "Luma Angle: ", $values{Luma_Angle}, "\n"; # etc...

Replies are listed 'Best First'.
Re^2: Ordering of print statements
by Eshan_k (Acolyte) on Jun 06, 2018 at 06:02 UTC
    Thanks Paladin for your reply.