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

Ryan Stille rps at willconsult.com
Tue Feb 22 09:36:10 PST 2005


Andrew.Hadenfeldt at alltel.com wrote:
> Two ideas:
> 
> 1. $body = join(undef, at 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
 


More information about the Omaha-pm mailing list