Paul wrote: > Hello all. Hello,
> Trying to get a 2 digit readout from $hour pulled from > localtime. How can I do this? my $hour = sprintf '%02d', ( localtime )[ 2 ]; Or: use POSIX 'strftime'; my $hour = strftime '%H', localtime; John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>