Re: Converting a array to a scalar

2004-12-23 Thread John
- Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Perl Beginners" 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. > > > > $co

Re: Converting a array to a scalar

2004-12-23 Thread John W. Krahn
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; p

Re: Converting a array to a scalar

2004-12-23 Thread Jonathan Paton
On Thu, 23 Dec 2004 14:24:33 +0200, John <[EMAIL PROTECTED]> wrote: > Is there any good function to convert an array (this is the > content of a file) to scalar (for email sending as the body) Perhaps the module you are using can do this for you. If not, it *may* convert newline sequences to the

Re: Converting a array to a scalar

2004-12-23 Thread John
- Original Message - From: "Moon, John" <[EMAIL PROTECTED]> To: "'John'" <[EMAIL PROTECTED]>; "Perl Beginners" Sent: Thursday, December 23, 2004 3:37 PM Subject: RE: Converting a array to a scalar > Subject: Converting a array to

Re: Converting a array to a scalar

2004-12-23 Thread John W. Krahn
John wrote: Is there any good function to convert an array (this is the content of a file) to scalar (for email sending as the body) my $scalar = join '', @array; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Converting a array to a scalar

2004-12-23 Thread Moon, John
Subject: Converting a array to a scalar Is there any good function to convert an array (this is the content of a file) to scalar (for email sending as the body) I am not sure I understand your questions but I have recently had success with the module Text-Template... You may wish to look at tha