Cory Bennett wrote:
It makes no difference whether $VAR is declared with 'my' or not. In
either case C's func() *can't* see it. You need to pass $VAR as an
argument to func().


Thanks, buy this isn't quite right.

Actually, it apparently isn't anywhere *near* right.
Thanks for correcting me so politely.
When I finish wiping the egg off my face (yet again) I'll take a closer look and see just exactly what I've been missing out on wrt 'get_sv'.


[...]


I dont *want* to pass anything, I just want to use it since it should be in scope, I just dont know how to grab it inside perl.



Yep .... understood .... now. Didn't know this was possible - always assumed it wasn't.


I still maintain that answering questions is a good way to learn .... damned pity it has to get so embarrassing every now and then.

Cheers,
Rob


--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.




Reply via email to