in reply to Re: How can I re-program the exists function?
in thread How can I re-program the exists function?
Well, as I said it was easier to explain using the exists example, but basically, my goal is to test an entry from a hashref, these entries contains objects and I wanted to create a generic function that receive a hashref path (just like the build-in exists function do) then test if the entry exists (using exists) then do some more tests on the object if it exists. I am able to do it with a workaround, it's just that I wanted to be fancy and be able to send only on parameter to my function, instead of two, like I am doing now.
I hope this explanation is clear enough. I cannot get into more details and I don't want to start a "why-don't-you-do-this-instead" thread, I just wanted to know if it was possible to emulate the exists function.
Thanks very much for your reply!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How can I re-program the exists function? (false)
by tye (Sage) on Aug 27, 2012 at 16:47 UTC |