Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by 2teez (Vicar)
on Jul 20, 2015 at 05:35 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1135405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-19 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found