Support for .pl and .cgi files, fixed length bug

Added support for .pl and .cgi files, which now will output POD and code.
Fixed deprecated use of length() that was throwing warnings on Perl 5.18 and 5.20, replaced with scalar()