in reply to Re^4: Passing the files as an argument in Subroutines
in thread Passing the files as an argument in Subroutines
Beautiful!. This shows that you are making good progress.
Now, use my to make all your variable local to your program file.
i.e like so:
my ($SEC,$MIN,$HOUR, $DAY, $MON, $YEAR) = ...; ... my $LOG = ...
You probably want to do perldoc -f my and perldoc strict on your CLI, to read a quick tip.
If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me
In Section
Seekers of Perl Wisdom