CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Re: [sangiro] Perl code (SSI) to detect day and time: Edit Log



Paul
Enthusiast

Feb 14, 2002, 3:10 PM


Views: 5351
Re: [sangiro] Perl code (SSI) to detect day and time

I wouldn't be surprised if the script is dying.

fashimpaur used strict but then forgot to declare the array Tongue

Try:

[perl]
#!/usr/bin/perl

use strict;

my @array = localtime();

print (($array[6] == 3) and ($array[2] == 21)) ? 'TRUE' : 'FALSE';
[/perl]


(This post was edited by RedRum on Feb 14, 2002, 3:10 PM)


Edit Log:
Post edited by Paul (Enthusiast) on Feb 14, 2002, 3:10 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives