in reply to Re: Generating standard length strings
in thread Generating standard length strings
I am not sure if that is what the OP intended.sub rpad { pack "A$_[1]", $_[0] }; my $string = 'averylongstringthatislongerthan10charsforsure!'; print "]", rpad($string, 10), "[\n"; __END__ ]averylongs[
|
|---|