Re: How do I create this string?

2007-03-20 Thread John W. Krahn
Flemming Greve Skovengaard wrote: > > John W. Krahn wrote: >> >> Flemming Greve Skovengaard wrote: >>> >>> $rand_string .= $letters[$index]; >> >> Or simply: >> >> $rand_string .= $letters[ rand @letters ]; > > Yes, that would save a line of code, a variable and a call to scalar(). > B

Re: How do I create this string?

2007-03-20 Thread Flemming Greve Skovengaard
John W. Krahn wrote: Flemming Greve Skovengaard wrote: 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 wa

Re: How do I create this string?

2007-03-19 Thread John W. Krahn
Flemming Greve Skovengaard wrote: > 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

Re: How do I create this string?

2007-03-19 Thread Flemming Greve Skovengaard
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? ... This will generate a st

Re: How do I create this string?

2007-03-19 Thread John W. Krahn
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 =

RE: How do I create this string?

2007-03-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
vid R Wagner Senior Programmer Analyst FedEx Freight 1.408.323.4225x2224 TEL 1.408.323.4449 FAX http://fedex.com/us > -Original Message- > From: Travis Thornhill [mailto:[EMAIL PROTECTED] > Sent: Monday, March 19, 2007 14:37 > To: beginners@perl.org > Subject: H

How do I create this string?

2007-03-19 Thread Travis Thornhill
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? - Never miss an email