Skip to content

Instantly share code, notes, and snippets.

View mattdees's full-sized avatar

matt dees mattdees

View GitHub Profile
@mattdees
mattdees / WHMCS.pm
Created September 18, 2012 02:23
perl module to access the WHMCS API
package API::WHMCS;
use strict;
use HTTP::Tiny;
use JSON::XS;
use Digest::MD5 ('md5_hex');
our $VERSION = 0.001;
#!/usr/bin/perl
my $input = $ARGV[0];
if ( !-e $input ) {
die "File not found";
}
if ( -d $input) {
die "Path is a directory";
}