Help for this page

Select Code to Download


  1. or download this
    my $vlen = 1;
    $LimitValue = sprintf("%-${vlen}.${vlen}s", $LimitValue);
    
  2. or download this
    $LimitValue = sprintf("%-*s", $vlen, $LimitValue);
    
  3. or download this
    $formatter = sprintf( "%%-%d.%ds", $vlen, $vlen );
    $LimitValue = sprintf($formatter, $LimitValue);