Quantcast
Channel: devnotcorp » Perl
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Yet another useless Perlscript …

… unless you like to watch Dragonball, Dragonball Z or Dragonball GT #!/usr/bin/perl use strict; use warnings; use LWP::Simple; my $src =...

View Article



Image may be NSFW.
Clik here to view.

Count pages in PDF

with Perl. #!/usr/bin/perl use strict; use warnings; use PDF::API2; use File::Basename; if ((@ARGV) open($file) or die "Not a PDF."; }; if ($@) { printf("%-50s: not a PDF.\n", $file); return; }...

View Article

Image may be NSFW.
Clik here to view.

Extract links using LibXML

Here’s a little example of the usage of perl’s XML::LibXML to extract links from a HTML page. #!/usr/bin/perl use strict; use warnings; use LWP::Simple; use XML::LibXML; my $url =...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images