#!/usr/bin/env perl use strict; use warnings; BEGIN { eval { require Net::Curl::Compat; } } use WWW::Curl::Easy; use Sys::Syslog; .. etc