RE: pp wiht option -x fails when trying to execute accessor methods

2010-01-10 Thread Nele Kosog
Roderich, thank you for your reply. I have to admit I probably did simplify my example too much when posting to the list ;-). I solved the problem my original question was addressing: Somewhere in the process of creating the executable I copied the modules to site/lib/my_project/ forgetting

pp wiht option -x fails when trying to execute accessor methods

2010-01-08 Thread Nele Kosog
My program uses accessors::rw qw ( variable_name ); to define accessor methods for my modules. When I pack my program with pp and -x option (which I use to pull in modules that load other modules at runtime - thanks to Roderich) it fails saying that it Can't call method my_var without a package or

Re: pp wiht option -x fails when trying to execute accessor methods

2010-01-08 Thread Roderich Schupp
On Fri, Jan 8, 2010 at 2:57 PM, Nele Kosog k...@sevencs.com wrote: it fails saying that it Can't call method my_var without a package or object reference at a line where I try to use the accessor methods. Here is a simplified example: I'd say you simplified it a bit too much, because it