$kernel->post( $src, $replypath, "I have no access token for your account.", $dest );
}
}
+
+IMDB: |-
+ sub {
+ my( $kernel, $heap, $who, $what, $src, $dest, $replypath ) = @_;
+ use IMDB::Film;
+ my $imdb = new IMDB::Film( crit => $what );
+ if( $imdb->status ) {
+ $kernel->post( $src, $replypath, $imdb->title()." (".$imdb->year()."): ".join( ', ', @{ $imdb->genres() } )."; Rating ".(scalar $imdb->rating()).": ".$imdb->storyline(), $dest );
+ } else {
+ $kernel-post( $src, $replypath, "An error occured: ".$imdb->error, $dest );
+ }
+ }