http://www.perlmonks.org?node_id=994293


in reply to BEGIN block and failure to initialize constants

Thanks for the replies. I like tobyink's solution for figuring out the path within the module - nice and clean. Unfortunately the Perl on my production machines is too elderly to support the /r substitution option. Looks like that came about in v5.14 and since I'm still being coerced into living with v5.10 I'll have to just leave a lovelorn comment showing how it could be prettier.

And Grandfather gives a great way to figure it out from the running script's perspective. Also handy!

As always, much appreciated =)

Strange things are afoot at the Circle-K.

  • Comment on Re: BEGIN block and failure to initialize constants