Thats great news.
Try using the capture method in module
Capture::Tiny to capture errors and print it , if you feel the control is going outside the perl script. (pdflib9
might be causing an issue externally).
FYI your error message(if any) from perl command execution will be stored in $! variable which u can print.
The temporal difficulty with perl is u need to know C well to know the awesome.else u just keep *using* it and writing inefficient code