A.11. Answer for Chapter 12A.11.1. Exercise (Section 12.12.1)The module Oogaboogoo/date.pm looks like this:
The main program now looks like this: use strict; use Oogaboogoo::date qw(day mon); my($sec, $min, $hour, $mday, $mon, $year, $wday) = localtime; my $day_name = day($wday); my $mon_name = mon($mon); $year += 1900; print "Today is $day_name, $mon_name $mday, $year.\n";
Copyright © 2003 O'Reilly & Associates. All rights reserved. |
|