Just FWIW: problem occurs with with AS 5.24 on Win 7-64:
* This is perl 5, version 24, subversion 0 (v5.24.0) built for MSWin32-x86-multi-thread-64int
on Win 7 pro, 64bit
use v5.10; # (OP's code, verbatim)
$Data::Dumper::Sortkeys = 1;
my $date = '05/10/1969';
my $ymd = '%Y-%m-%d';
my $mdy = '%m/%d/%Y';
my $t = Time::Piece->strptime($date,$mdy);
say $t->ymd; # Prints as normal
say $t->strftime($ymd); # Segmentation fault
And, the same popup as cited above with the following content:
Problem Event Name: APPCRASH
Application Name: perl.exe
Application Version: 18.104.22.1680
Application Timestamp: 578689b9
Fault Module Name: Piece.dll
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 57868a01
Exception Code: c0000005
Exception Offset: 00002398
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||