On 7/30/07, Rob Dixon <[EMAIL PROTECTED]> wrote:
> Bryan Harris wrote:
> >
> > I'm not sure I understand why this is happening.  Maybe someone can
> > explain it to me.  No matter how many times I use the chomp() function
> > on my array, when I print the array it always prints the newlines.
> > But I have another array, which will print without the newlines.
> >
>
> You probably have something different from the standard line terminator
> at the end of your records. Try
>
>   s/\s+\z// foreach @file_list;
>
> instead, but understand that this will also remove trailing space
> characters.

That did what I wanted, thanks!


-- 
Bryan

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to