I\'m not sure if importing is the right word to use. I\'m a beginner in both Perl and Bash. I have set a variable on Bash, so when I do:
echo $PRDIR
If you want Bash to export a variable into the environment so it's accessible to programs, you can use the export builtin:
export
export PRDIR
Inside Perl, you would then access it using the %ENV hash:
%ENV
my $varex = $ENV{"PRDIR"}; print "\$varex is: $varex\n";