- I don't know how else to do it (yet). (File::Copy?)
- Leftover from the first design. It changed a lot... should be changed, I agree.
- It's in my to-do, but thanks for the thought :)
- That has crossed my mind too :)
- I've been doubting that, yeah. I didn't think anyone else will use this, so I just left it this way.
- It does? That's a bug. Thanks!
Re: PS: As I said, it's for the exercise. If I don't code, I won't improve. Plus I wanted to make a shell script first, asked in the CB, and got asked why I didn't make a Perl script ;)
All in all, thanks for the help.
| [reply] |
b10m:
You use system() to copy a file. Not very Perl'ish ;)
Detonite:
I don't know how else to do it (yet). (File::Copy?)
That would work.
b10m:
$sdate (and others) will be in this format: 27-7-5, while "2005-07-27" probably makes more sense to international users.
Detonite:
I've been doubting that, yeah. I didn't think anyone else will use this, so I just left it this way.
First of all, you post it here, so someone might be using it already. Secondly, you seem to use that information also in your reply emails (s/_DATE_FROM_/$sdate/g;) - and those might reach other mailboxes besides yours ;)
b10m:
Script dies when target start date has not been reached yet.
Detonite:
It does? That's a bug. Thanks!
Before you updated the node, it said "die("...") if($sdate ne
$cdate)", so yes, it will die ;) Instead of die'ing, you might
want to print just errors, so when something fails, cron will notify
you. (See the --silent option I suggested before).
Detonite
As I said, it's for the exercise. If I don't code, I won't improve. Plus I wanted to make a shell script first, asked in the CB, and got asked why I didn't make a Perl script ;)
True, it's good excercise, yet Perl isn't always the right tool ;)
--
b10m
All code is usually tested, but rarely trusted.
| [reply] |