Stuart White wrote:
> 
> <snip>
> 
> > > Of course, then all the numbers are squished
> > together.
> > >  (How else might I say that?)
> >
> > I don't know, what do you mean by "squished
> > together"?
> >
> without spaces between each number.  (it was late last
> night and I had a mental block.)
> 
> > > So my solution is to
> > > "stringify" the array of numbers by putting the
> > array
> > > inside double quotes and assigning it to itself.
> > That
> > > seems to work.
> >
> > How does that "seem to work"?
> 
> Well, it seemed to work because I thought that I was
> getting those numbers into an array, an element for
> each number.

They were already in an array.

> But as you point out later, I just got
> them into the first element.
> 
> <snip>
> So when I get the number from the user, I thought that
> the simplest way to get all the numbers in between was
> to use the range operator, and then store those
> numbers into an array.

Yes that is the simplest way.

> Is there a way I can do that?
> Is using the range operator not a good way to go about
> getting the numbers in between and then storing them
> into an array?

Yes, you originally had them in an array and then modified that array by
putting all the elements into the array as a single string.


John
-- 
use Perl;
program
fulfillment

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


Reply via email to