Where is the mistake..

[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

  • 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.

Howdy, Stranger!

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

Categories

In this Discussion