Hi,

I have a script in cron that I haven't changed in months. I use the DateTime module in the script. This afternoon, the script stopping running properly. I ran the script manually and received the error below.

Unrecognized character \x0E; marked by <-- HERE after warnings;<-- HE +RE near column 14 at /usr/local/share/perl/5.28.1/Role/Tiny/With.pm l +ine 4. Compilation failed in require at /usr/local/share/perl/5.28.1/Specio/C +oercion.pm line 10. BEGIN failed--compilation aborted at /usr/local/share/perl/5.28.1/Spec +io/Coercion.pm line 10. Compilation failed in require at /usr/local/share/perl/5.28.1/Specio/D +eclare.pm line 11. BEGIN failed--compilation aborted at /usr/local/share/perl/5.28.1/Spec +io/Declare.pm line 11. Compilation failed in require at /usr/local/lib/arm-linux-gnueabihf/pe +rl/5.28.1/DateTime/Types.pm line 12. BEGIN failed--compilation aborted at /usr/local/lib/arm-linux-gnueabih +f/perl/5.28.1/DateTime/Types.pm line 12. Compilation failed in require at /usr/local/lib/arm-linux-gnueabihf/pe +rl/5.28.1/DateTime/Duration.pm line 12. BEGIN failed--compilation aborted at /usr/local/lib/arm-linux-gnueabih +f/perl/5.28.1/DateTime/Duration.pm line 12. Compilation failed in require at /usr/local/lib/arm-linux-gnueabihf/pe +rl/5.28.1/DateTime.pm line 14. BEGIN failed--compilation aborted at /usr/local/lib/arm-linux-gnueabih +f/perl/5.28.1/DateTime.pm line 14. Compilation failed in require at processcamerathree.pl line 8.

I thought possibly something because corrupt so I tried to reinstall DateTime using cpan.
When I do that I get a lot of the same error as above.

Any suggestions on how to proceed?

Thanks!
Mike


In reply to DateTime throwing an error by nachtmsk

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.