viffer has asked for the wisdom of the Perl Monks concerning the following question:
<grovel>Hi wonderful smart people </end grovel>
Hopefully this makes sense
I am processing an afp file
I want to see the value of a certain string so I can use
printf "Triplet_Values = <hex: %*v2.2X>\n", ' ', $data;
The problem is this writes it to stdout
What I want to do is assign it to a variable and write that variable to a log file, or pass that variable back to the calling routine
eg something like
But all the apostrophes are making it beyond my capabilities.my $variable=printf "--INSIDE Get_Triplet_Values = <hex: %*v2.2X>\n", +' ', $data; print LOG $variable
Any help gratefully received.
Back to
Seekers of Perl Wisdom