[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Omaha.pm] Converting an array of strings into a scalar



Andrew.Hadenfeldt@alltel.com wrote:
> Two ideas:
> 
> 1. $body = join(undef,@filecontents);

I'll try that.
 
> 2. If @filecontents originally came from a file handle then you can
> just read it in "slurp mode" (see 'perldoc perlvar' for $/): 

I started doing it this way at first, but the first line of the file
contains a delimited list of parameters I need to parse separately.  So
I just put it into an array, shift the first line off, then do something
with the rest of the lines.

Thanks,
-Ryan