Good day bros. I am trying to use XML::RSS to create and save an RSS file. I am creating the rss object with the defaults i.e. my $rss = XML::RSS->new(); which according to the docs should create an RSS 1.0 file with UTF-8 encoding. Everything goes fine in terms of creating the object, but when I issue rss->save('my.rss') I get the following errors:
$text is undefined in XML::RSS::_encode(). We don't know how to handle + it! at c:/Perl64/site/lib/XML/RSS/Private/Output/Base.pm line 84. XML::RSS::Private::Output::Base::_default_encode('XML::RSS::Privat +e::Output::V1_0=HASH(0x58e7a98)', undef) called at c:/Perl64/site/lib +/XML/RSS/Private/Output/Base.pm line 76 XML::RSS::Private::Output::Base::_encode('XML::RSS::Private::Outpu +t::V1_0=HASH(0x58e7a98)', undef) called at c:/Perl64/site/lib/XML/RSS +/Private/Output/Base.pm line 853 XML::RSS::Private::Output::Base::_out_seq_items('XML::RSS::Private +::Output::V1_0=HASH(0x58e7a98)') called at c:/Perl64/site/lib/XML/RSS +/Private/Output/V1_0.pm line 83 XML::RSS::Private::Output::V1_0::_output_rss_middle('XML::RSS::Pri +vate::Output::V1_0=HASH(0x58e7a98)') called at c:/Perl64/site/lib/XML +/RSS/Private/Output/Base.pm line 1107 XML::RSS::Private::Output::Base::_render_complete_rss_output('XML: +:RSS::Private::Output::V1_0=HASH(0x58e7a98)') called at c:/Perl64/sit +e/lib/XML/RSS.pm line 488 XML::RSS::_render_complete_rss_output('XML::RSS=HASH(0x4f4ae0)', 1 +.0) called at c:/Perl64/site/lib/XML/RSS.pm line 500 XML::RSS::as_rss_1_0('XML::RSS=HASH(0x4f4ae0)') called at c:/Perl6 +4/site/lib/XML/RSS.pm line 568 XML::RSS::__ANON__[c:/Perl64/site/lib/XML/RSS.pm:568]() called at +c:/Perl64/site/lib/XML/RSS.pm line 557 XML::RSS::_output_env('XML::RSS=HASH(0x4f4ae0)', 'CODE(0x58e7de0)' +) called at c:/Perl64/site/lib/XML/RSS.pm line 569 XML::RSS::as_string('XML::RSS=HASH(0x4f4ae0)') called at c:/Perl64 +/site/lib/XML/RSS.pm line 1370
I tried setting explicit encoding in the new method, and that didn't help. Anyone know what is wrong?

In reply to XML::RSS save crashing by cormanaz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.