----- Original Message ----- From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Perl Beginners" <beginners@perl.org> Sent: Thursday, December 23, 2004 4:06 PM Subject: Re: Converting a array to a scalar
> John wrote: > > I found a quite easy way to do that. > > > > $content="@the_array"; > > > > Is the above method good or am i missing something? > > That is the same as: > > $content = join $", @the_array; > > So if you want to have the array separated by the contents of the $" variable > which defaults to ' '? > > > 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> > > > Thanks that also worked $content=join "", @the_array; because i want nothing between the elements of the array during join. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>