develooper Front page | perl.perl5.porters | Postings from March 2007

file reloading

Thread Next
Irene Ladyko
March 29, 2007 03:49
file reloading
Message ID:
Hello, perl5-porters.

I use embeded perl (version 5.8.8) interpreter in my application.

1. I load file per eval_pv function.
                        perl_eval_pv ("require '';", FALSE);
2. Then call IncreaseGlobalVariable. It increases by 1.
3. Then I reload file again. As I understand reloading, it
means variable reloading too, i.e. int_var variable must be set on 75.
But it doesn't happened.

          What must I do to reload file completely. (Global variables from
other files will not be reloaded). Please, point me to solution.

$int_var = 75;

sub IncreaseGlobalVariable
        $int_var = $int_var + 1;

Best Regards,
Irene ,
C++ Developer
of ISS Art, Ltd., Omsk, Russia.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About