Hello,
is it possible to print the "MISSING" label for a non existing hash element, using a single line sprintf command as below (which does not work) ?
Thank you
my $missing = "MISSING"; my %h = ( A => 1.23435 ); my $out = sprintf "%.3E", $h{A} || $missing; warn $out; $out = sprintf "%.3E", $h{B} || $missing; warn $out;
In reply to Printing non existing hash values as "missing" by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |