Travis Thornhill wrote:
> I need to make strings of variable length for testing inputs.
> The strings can contain any letter, say 'a', and I need to be able to
> create the string with 255, 256 or any length.
> 
> Is there a quick and easy way to do this with perl?

my $letter = 'a';

my $length = 255;

my $string = $letter x $length;



John
-- 
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order.       -- Larry Wall

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to