http://www.perlmonks.org?node_id=24616

zdog has asked for the wisdom of the Perl Monks concerning the following question:

Is there any way I can set a length for a string?

So if I say,

my $string = "Hello"; print "$string;";

and set the length to 10, it prints out as

Hello         ;

rather than

Hello;

Thanx.

Zenon Zabinski | zdog | zdog7@hotmail.com