That looks like a sewage line (PVC) as opposed to the typical footing drain (Black corrugated pipe)
White PVC, with 3/8" to 1/2" holes about 6 inches apart the whole length, is perfectly usable for perimeter drains.
A sewage line should never come into and dump into an indoor chamber that is not hermetically sealed (except for inlet and outlet pipes).
(One morning on WRKO Radio) The tub's not clean! Let's remodel the bathroom.
(One afternoon on WRKO Radio) It's time for an oil change. I'm going to trade in the car for next year's model.