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

Re: Variable scoping problem

by BillKSmith (Monsignor)
on Nov 27, 2019 at 03:47 UTC ( [id://11109298]=note: print w/replies, xml ) Need Help??


in reply to Variable scoping problem

Note that your problem has nothing to do with "variable scoping". There is only one package variable named $database. Neither the variable nor its name ever go out of scope before the end of the program. The value of that variable changes when the required code is executed as other monks have explained.
Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-23 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found