use Net::Shoutcast::Admin; my $shoutcast = Net::Shoutcast::Admin->new( host => 'server hostname', port => 8000, admin_password => 'mypassword', ); if ($shoutcast->source_connected) { printf "%s is currently playing %s by %s", $shoutcast->dj_name, $shoutcast->currentsong->title, $shoutcast->currentsong->artist ; } else { print "No source is currently connected."; }