Scope of an Object as a parameter


Is there any way to infer the scope of an Object when it is passed to a method as a parameter?

Let’s say I have a method named “Object Stuff” that has this;
Code :

And another method like this;
Code :
Object Stuff($localObject)
Object Stuff(processObject)
Object Stuff(<>interprocessObject)

Can the Object Stuff method “know” if $1 references a local, process or interprocess Object in the calling method?


I suppose not: once the object passed as a parameter, the method sees a reference, nothing more.
Just curious: what for?

That’s exactly what I thought too, but I thought I’d ask.

I had an idea for something with naming conventions based on a variable’s scope. But it turns out after further testing, it was a stupid idea.