Help for this page

Select Code to Download


  1. or download this
    my $w = 3;
    my $str = "abc";
    my $line = sprintf "%${w}s ", $str; # still has an error
    
  2. or download this
    my $line = sprintf "%" . $w . "s ", $str;