abitkin has asked for the wisdom of the Perl Monks concerning the following question:
use Time::Local; ... my $ref = shift; my $date1 = shift @$ref; my $time1 = shift @$ref; print "-1\n" and exit unless $date1 =~ /(\d\d)(\d\d)(\d\d)/; my @date2 = ($1,$2,$3); print "-1\n" and exit unless $time1 =~ /(\d\d):(\d\d)/; my @time2 = ($1,$2); my $t; eval {$t = timegm(0,$time2[1],$time2[0],$date2[1],$date2[0]-1,$dat +e2[2]+100)}; print "-1\n" and exit if $@; ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comedy of StdErrs
by TomDLux (Vicar) on Aug 11, 2003 at 16:17 UTC | |
|
Re: Comedy of StdErrs
by sgifford (Prior) on Aug 11, 2003 at 16:22 UTC | |
|
Re: Comedy of StdErrs
by Mr. Muskrat (Canon) on Aug 11, 2003 at 16:24 UTC | |
|
Re: Comedy of StdErrs
by sauoq (Abbot) on Aug 11, 2003 at 22:18 UTC | |
|
Re: Comedy of StdErrs
by BUU (Prior) on Aug 11, 2003 at 20:01 UTC |