Learned Monks,
I am getting an error when using Net-Shoutcast-Admin. Using the following code as supplied in the docs:
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.";
}
... used the proper host,port, password - receive the following error:
xml declaration not at start of external entity at line 2, column 0, byte 1 at C
:/Perl/lib/XML/Parser.pm line 187
Any ideas? Thanks!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.