******************
FIXED - thanks to wfsp
******************
hello please can you help
i am trying to get the elements of the gmtime return by
using this
#!c:/perl/bin/perl
use Time::gmtime;
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime();
print << "EOF";
Content-Type: Text/html\n\n
<b><font face=courier color=white size=2>$sec</font></b>
EOF
but all I am getting is the first element of the list $sec
being filled with this
Time::tm=ARRAY(0x15ab4e8)
with all the other elements being blank
I am obviously doing something wrong and would greatly
appreciate help
thanks
2005-10-16 Retitled by Arunbear, as per Monastery guidelines
Original title: 'gmtime'
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:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.