Created
March 4, 2013 14:20
-
-
Save tryperl/5082525 to your computer and use it in GitHub Desktop.
Created by www.tryperl.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Created by tryperl.com | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
print Dumper( \%ENV ); | |
my @localDirs = split( ':', $ENV{'PATH'} ); | |
foreach my $dir @localDirs { | |
opendir (my $odir, $dir); | |
while readdir $odir; { | |
print "$_\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment