[EMAIL PROTECTED] wrote:

Wise ones,

I've got a line of code I use in several Windoze programs, and it's always worked just fine. Now I'm trying it in UNIX and it croaks with a syntax error. Can anyone help?

Here's the line of code:
>
   # get date slice for start of current run from epoch value.
   my ($dd, $mm, $yy, $hh, $mn) = map localtime( $^T )->$_ => qw(mday mon year 
hour min);
>
the syntax message says that the error happens "near $_ =>", if that helps any.

A syntax error should not be a difference between Windows and Unix. It would normally be a difference between two different versions of Perl.

And, in fact, your code does not work on my up-to-date ActivePerl for Windows.

--
John W. Kennedy
"The blind rulers of Logres
Nourished the land on a fallacy of rational virtue."
  -- Charles Williams.  "Taliessin through Logres: Prelude"

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to