Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: Passing the files as an argument in Subroutines

by 2teez (Vicar)
on Jul 20, 2015 at 05:35 UTC ( #1135405=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1135405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-04-16 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?