Great to hear Rajeev!
Jan-willem wrote this regarding the problem:
> Hi Shannon,
>
> This is a way to space apart the variable.
>
> $input = "345678";
> @pieces = split(//,$input);
>
> foreach $line (@pieces) {
> $newinput = $newinput . " $line";
> }
>
> I'm sure it is also possible with a fancy regular expression,
> unfortunately i don't master regulat expr. (yet) :)
> Hope you can do something with it.
>
> tchau,
> Jan-willem
cheers,
-Shannon
>> From: [EMAIL PROTECTED] (Rajeev Rumale)
>> Organization: My Angel.com
>> Newsgroups: perl.beginners.cgi
>> Date: Tue, 2 Oct 2001 18:54:51 +0800
>> To: <[EMAIL PROTECTED]>, "Shannon Murdoch"
>> <[EMAIL PROTECTED]>
>> Subject: Re: $variable manipulation question
>>
>> Thats Great !
>> Yes this is infact helped me.
>> I was trying it in a much complicated way.
>>
>> regards
>>
>> Rajeev Rumale
>>
>>
>>
>>
>> ----- Original Message -----
>> From: "Shannon Murdoch" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Tuesday, October 02, 2001 6:50 PM
>> Subject: Re: $variable manipulation question
>>
>>
>>> I found a solution not long after using a loop of sorts. (and killed two
>>> birds with one stone, as my next step was to put each item (space
>> delimited)
>>> into an array).
>>> I made a loop saying, 'as long as $input still has characters in it, put
>>> each one (one at a time) into the @front_chars array, then reverse the
>> list
>>> order so it's normal again.'
>>>
>>> $input = "1234";
>>>
>>> while($input ne undef){
>>> push(@front_chars,chop($input));
>>> }
>>> @front_chars = reverse @front_chars;
>>>
>>> Not sure if this is helpful to anyone, but it helped me....
>>>
>>>
>>>> Hi all,
>>>>
>>>> I'm trying to get a string (held in a variable) to have all it's
>> characters
>>>> spaced apart by a ' ' space.
>>>>
>>>> ie. $input's content changes from '1234' to '1 2 3 4'
>>>>
>>>> Is there some way to do this?
>>>>
>>>> cheers,
>>>> -Shannon
>>>>
>>>
>>>
>>> --
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]