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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: A Set String Legngth
by young perlhopper (Scribe) on Jul 27, 2000 at 06:31 UTC | |
Re: A Set String Length
by turnstep (Parson) on Jul 27, 2000 at 07:31 UTC | |
RE: Set String Length (benchmark)
by Russ (Deacon) on Jul 27, 2000 at 07:43 UTC | |
by steveAZ98 (Monk) on Jul 27, 2000 at 08:08 UTC | |
by perlmonkey (Hermit) on Jul 27, 2000 at 08:27 UTC | |
by steveAZ98 (Monk) on Jul 27, 2000 at 08:36 UTC | |
Re: A Set String Legngth
by perlmonkey (Hermit) on Jul 27, 2000 at 07:47 UTC | |
Re: A Set String Length
by ase (Monk) on Jul 27, 2000 at 14:08 UTC | |
(zdog) Re: A Set String Length
by zdog (Priest) on Jul 27, 2000 at 06:29 UTC |
Back to
Seekers of Perl Wisdom