in reply to (code) Just Another Net::FTP Script

A minor quibble with the way you generate timestamps (in the LocalTime subroutine).

Putting it all together, you get something like:

sub timestamp { sprintf '%4d-%02d-%02d:%02d:%02d:%02d', sub{ $_[5]+1900, $_[4]+1, @_[reverse 0..3] }->(localtime) }

Note that this string is not perfect as it does not encode the local time zone. That, of course, is left as an exercise to the reader.


--
g r i n d e r