in reply to Assigning a returned value to a hash variable
To add a little emphasis to pg's reply: there are a number of good reasons for providing a "cleaned up" and runable version of your code when posting a question.
1/ If other Monks can just download your sample code and run it to see the problem for themselves they are more likely to investigate something subtle.
2/ Even if you can't provide a sample that runs and demonstrates the problem, making the code as simple as you can helps both you and the Monks in focusing on the problem at hand.
3/ In the process of simplifying the code you will better appreciate the nature of problem. Indeed you may even solve your own problem.
As an asside, by writing sub confirm() you are saying explicitly that confirm does not take any parameters and that it is a contender for inlining. That may or may not have been what you were intending, but is a trap that is often sprung.
Note too that the form TYPE(0x...) is almost always a clue that you have attempted to print out a reference, rahter than the thing referred to.
|
|---|