my @print_elements = map{ sprintf "%20s", $_ } @elements; my $missing = $WANTED - @elements; if ( $missing > 0 ) { print "Missing $missing element(s), current list: @print_elements\ +n"; } else { # blah }
cheers
tachyon
In reply to Re: Printf Question
by tachyon
in thread Printf Question
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |