Local and Global variables in perl

In terms of scoping, there are three kinds of variables in Perl. Lexical variables are lexically scoped, which means they are only visible in the current lexical scope (basically file or block). Package variables, on the other hand, can be used using their qualified form (e.g. $Foo::x) from anywhere in the interpreter, and they can … Read more

How can I extract text from a PDF file in Perl?

These modules you can acheive the extract text from pdf PDF::API2 CAM::PDF CAM::PDF::PageText From CPAN my $pdf = CAM::PDF->new($filename); my $pageone_tree = $pdf->getPageContentTree(1); print CAM::PDF::PageText->render($pageone_tree); This module attempts to extract sequential text from a PDF page. This is not a robust process, as PDF text is graphically laid out in arbitrary order. This module uses … Read more