in reply to Splittin the Date
"How do you split on multiple spaces":
my ($day, $month, $daynum, $time, $zone, $year) = split /\s+/, `date`;
However, that doesn't go far enough, since you don't actually need to fork here:
However what you probably want to do instead is just take the list output of localtime:my ($day, $month, $daynum, $time, $zone, $year) = split /\s+/, localti +me;
Which is already split up nicely. See the docs for details.my @now = localtime;
-- Randal L. Schwartz, Perl hacker
|
|---|