Skip to content

Instantly share code, notes, and snippets.

@yoshiki
Created August 26, 2009 04:15
Show Gist options
  • Save yoshiki/175307 to your computer and use it in GitHub Desktop.
Save yoshiki/175307 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/perl
use strict;
use warnings;
use WWW::Mechanize;
use Term::QRCode;
my $mech = WWW::Mechanize->new;
$mech->get( "http://conferences.yapcasia.org/ya2009/main" );
$mech->submit_form(
form_number => 1,
fields => {
credential_0 => 'username',
credential_1 => 'password',
},
);
print Term::QRCode->new->plot( $1 ), "\n"
if $mech->content =~ m#<strong>(\d+)</strong>#;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment