Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hi This code
#!/usr/bin/perl -w use strict; use DateTime::Format::ISO8601; use DateTime::Format::Strptime; use Data::Dumper; my $di = DateTime::Format::ISO8601->parse_datetime('2018-08-20T06:43:5 +0.330Z'); my $dv = DateTime::Format::ISO8601->parse_datetime('2018-08-20T06:46:5 +6.147Z'); my $delta = $dv - $di; print Dumper $delta;
works fine in perl interpreter 5.16
but when i make a binairy with PerlApp it gives me following error

ERROR:
DateTime/Format/Builder/Parser.pm line 164. DateTime::Format::Builder::Parser::create_single_parser(undef, 'params', 'ARRAY(0x297e3dc)', 'length', 8, 'regex', 'Regexp=REGEXP(0x479be24)') called at /

DateTime/Format/Builder/Parser.pm line 305 DateTime::Format::Builder::Parser::sort_parsers('DateTime::Format::Builder::Parser', 'HASH(0x479372c)', 'ARRAY(0x4790cb4)') called at /

DateTime/Format/Builder/Parser.pm line 228 DateTime::Format::Builder::Parser::create_multiple_parsers('DateTime::Format::Builder::Parser', 'HASH(0x479372c)', 'HASH(0x479be04)', 'HASH(0x479bee4)', 'HASH(0x479bf94)', 'HASH(0x479c034)', 'HASH(0x479c0e4)', 'HASH(0x479c204)', 'HASH(0x479c314)', ...) called at /

DateTime/Format/Builder/Parser.pm line 362 DateTime::Format::Builder::Parser::create_parser('DateTime::Format::Builder::Parser', 'ARRAY(0x478cf1c)', 'HASH(0x479be04)', 'HASH(0x479bee4)', 'HASH(0x479bf94)', 'HASH(0x479c034)', 'HASH(0x479c0e4)', 'HASH(0x479c204)', 'HASH(0x479c314)', ...) called at /<\datetimeproblem.exe>DateTime/Format/Builder.pm line 122 DateTime::Format::Builder::create_parser('DateTime::Format::Builder', 'ARRAY(0x47a2c04)') called at /<\datetimeproblem.exe>DateTime/Format/Builder.pm line 132 DateTime::Format::Builder::create_end_parser('DateTime::Format::Builder', 'ARRAY(0x47a2c04)') called at /

DateTime/Format/Builder.pm line 78 DateTime::Format::Builder::create_class(undef, 'parsers', 'HASH(0x47a38fc)') called at /<\datetimeproblem.exe>DateTime/Format/ISO8601.pm line 173 eval '' called at perlapp line 831 PerlApp::safe_eval() called at PerlApp/myrequire.pl line 102 PerlApp::my_require('DateTime/Format/ISO8601.pm') called at datetimeproblem.pl line 3 main::BEGIN() called at /<\datetimeproblem.exe>DateTime/Format/ISO8601.pm line 0 eval {...} called at /<\datetimeproblem.exe>DateTime/Format/ISO8601.pm line 0 BEGIN failed--compilation aborted at datetimeproblem.pl line 3.


Thanks for your Help
Harry C

In reply to Active perl Perlapp problem by harryC

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found