LeeC79 has asked for the wisdom of the Perl Monks concerning the following question:
I simply using the strftime function to get and print the localtime of the server.Can't modify subroutine entry in scalar assignment at C:\Perl\lib/POSI +X.pm line 3, near ");" BEGIN not safe after errors--compilation aborted at C:\Perl\lib/POSIX. +pm line 5. BEGIN failed--compilation aborted at ftp_Invent.pl line 11.
Can anyone explain to me why I'm having this problem? Thanks in advance.#!/usr/local/bin/perl -w use strict; use POSIX qw(strftime); my $now_string; $now_string = strftime '%Y%m%d.%H%M%S', localtime; my $now_string2 = strftime '%Y%m%d%H%M%S', localtime;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POSIX.pm and Perl 5.004_02 - Compatible?
by PodMaster (Abbot) on Sep 08, 2003 at 16:25 UTC | |
by LeeC79 (Acolyte) on Sep 08, 2003 at 17:05 UTC | |
by PodMaster (Abbot) on Sep 08, 2003 at 21:47 UTC | |
|
Re: POSIX.pm and Perl 5.004_02 - Compatible?
by jmcnamara (Monsignor) on Sep 08, 2003 at 16:27 UTC | |
by LeeC79 (Acolyte) on Sep 08, 2003 at 18:02 UTC | |
by Roger (Parson) on Sep 09, 2003 at 01:14 UTC |