in reply to Re^3: find CD drive letter
in thread find CD drive letter

The only bit of that output that came from the perl print statement was the final 0. If you doubt it, omit the print and re-run it.