export is a shell built-in and it doesn't work the way you're using it. system launches a shell, which executes the export command and then exits. After the shell has ended, all changes and exports vanish as well.
Manipulating the environment of child processes is done through manipulating the %ENV hash in Perl:
$ENV{CLASSPATH} = "$ENV{CLASSPATH}:/usr/users/private";
In reply to Re: export classpath in perl script
by Corion
in thread export classpath in perl script
by gfarhat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |