In a mixer, combine margarine, white sugar, brown sugar. Add eggs one at a time and beat until smooth. Add pineapple, baking powder, baking soda, and salt. Slowly add the flour. Drop heaping teaspoonsful of batter on to greased cookie sheet. Bake 12-15 minutes at 375 degrees.