Perl

Moderators: Jonathan
Number of threads: 1236
Number of posts: 3605

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Where is the mistake.. Posted by truel on 14 Nov 2004 at 6:05 AM
#!/usr/bin/perl

use POSIX;
use Date::Manip;

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

print $t, "\n";


Hi, could someone tell me, where is the mistake ? Why print doesn't show $t at the stdout ?
Report
Re: Where is the mistake.. Posted by truel on 14 Nov 2004 at 8:03 AM
Ok, i do that in this way:
#!/usr/bin/perl

use Date::Manip;

$today = ParseDate ("today");
$t = UnixDate ($today, "%s");


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




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.