There is a major gotcha in the way ksh works in 5.2 compared to 4.3.3 (and most other popular flavours of unix come to think of it). It comes down to variable substitution within brackets.
On 4.3.3 the following returns as you would expect and displays "ok"...
There is a major gotcha in the way ksh works in 5.2 compared to 4.3.3 (and most other popular flavours of unix come to think of it). It comes down to variable substitution within brackets.
On 4.3.3 the following returns as you would expect and displays "ok"...
You can use the Date::Format module:
use Date::Format;
$date1 = time2str("%m%d%Y", time);
$date2 = time2str("$d-%b-%y", time);
Robin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.