Where is the mistake.. - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Where is the mistake..

trueltruel Posts: 2Member
[code]#!/usr/bin/perl

use POSIX;
use Date::Manip;

$today = strftime ("%d/%m/%Y", localtime);
$t = &UnixDate ($today, "%s");

print $t, "
";[/code]

Hi, could someone tell me, where is the mistake ? Why print doesn't show $t at the stdout ?

Comments

  • trueltruel Posts: 2Member
    Ok, i do that in this way:
    [code]#!/usr/bin/perl

    use Date::Manip;

    $today = ParseDate ("today");
    $t = UnixDate ($today, "%s");
    [/code]

    Eh, sorry for that stupid topic, i only need to read documentation, hyhy, sorry once time, bye

Sign In or Register to comment.