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.
Then after the loopif ($line =~ /\s*APP>\s*LumaIntraMode\s:(\w+),\suse_intrabc:(\d)/i) { $values{Luma_mode} = $1; } # etc...
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 |
In Section
Seekers of Perl Wisdom