Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Seek Critique of program, format, structure, overall "Perl"ness

by duff (Parson)
on Dec 07, 2003 at 01:24 UTC ( [id://312830]=note: print w/replies, xml ) Need Help??


in reply to Seek Critique of SFTP program, format, structure, overall "Perl"ness

I haven't looked through the whole program yet, but you appear to do this:

my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = loc +altime(); $mon += 1; $year += 1900; my $timestamp = sprintf( "%04d%02d%02d %02d:%02d:%02d", $year, $mon +, $mday, $hour, $min, $sec );

quite a bit. Use strftime() instead.

use POSIX qw(strftime); my $ts = strftime("%Y%m%d %H:%M:%S", localtime);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://312830]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found