"%ENV" hash. However, if using the ENV module, it will create global scalars for all the environment variables.If required to get only a few selected variables then it can be done like:use Env;
print "$USER uses $SHELL";
use Env qw[@PATH $USER];print "$USER's path is @PATH";
No comments:
Post a Comment