think you might want to add

$ = setoption('wrapateol','on')

to the top of your script - output might be readable then...