because i did a similar command in another script which
did not need chomping. i gues when in doubt, chomp !
-Original Message-
From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 1:42 AM
To: [EMAIL PROTECTED]
Subject: Re: When to chomp
--- "Kipp, James&quo
--- "Kipp, James" <[EMAIL PROTECTED]> wrote:
> Could someone enlighten me on when it is necessary
> to chomp an array. It seems when i write scripts
> that have a foreach or a while to iterate through
> an array sometimes the chomp is necessary and
> sometimes it is not.
chomp(@array); # What
ok, but I just dealing with arrays generated in my script(s). I am not
reading from any files. Yet one of the arrays that i was iterating thru and
running an operation on failed until i added chomp. but on a similar array
it did not need it
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED
At 22:11 2002.06.06, Kipp, James wrote:
>Could someone enlighten me on when it is necessary to chomp an array. It
>seems when i write scripts that have a foreach or a while to iterate through
>an array sometimes the chomp is necessary and sometimes it is not.
>
>Thanks
chomp remove line ending c