eval scope

2001-12-10 Thread Jon Molin
Hi list, I'm trying to use eval () with a constants module and it works very funny, can anyone explain this behavior to me. It seems to me as this is a scope thing. If i remove the 'my' it works fine but i can't see why it shouldn't work with my: i have a module with constants (constants.pm):

Re: eval scope

2001-12-10 Thread Jenda Krynicky
From: Jon Molin [EMAIL PROTECTED] I'm trying to use eval () with a constants module and it works very funny, can anyone explain this behavior to me. It seems to me as this is a scope thing. If i remove the 'my' it works fine but i can't see why it shouldn't work with my: i have a module