in reply to Using perldoc

"doesn't work"

Does anything happen? Does anything get displayed on screen? Are you using the system perl (perl which ships with OSX)? Do you have xcode/dev tools installed? Your post doesn't give much to work with, see How do I post a question effectively?.