in reply to Self-printing program

Thank you all for your suggestions.

I did try operating on the DATA filehandle, but one of the assignment constraints is that the program adhere to the recursion theorm, which precludes reading the source directly. That's the reason why I'm playing around with this kind of code.