]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gnu/usr.bin/perl/lib/importenv.pl
Add the missing rerelease target back.
[FreeBSD/FreeBSD.git] / gnu / usr.bin / perl / lib / importenv.pl
1 ;# $Header: /home/cvs/386BSD/ports/lang/perl/lib/importenv.pl,v 1.1.1.1 1993/08/23 21:29:53 nate Exp $
2
3 ;# This file, when interpreted, pulls the environment into normal variables.
4 ;# Usage:
5 ;#      require 'importenv.pl';
6 ;# or
7 ;#      #include <importenv.pl>
8
9 local($tmp,$key) = '';
10
11 foreach $key (keys(ENV)) {
12     $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
13 }
14 eval $tmp;
15
16 1;