Help for this page

Select Code to Download


  1. or download this
    my $string = 'foo';
    my $len = 15;
    $string = sprintf "%${len}s", $string;
    print $string;