Skip to content

Instantly share code, notes, and snippets.

@tryperl
Created March 4, 2013 14:20
Show Gist options
  • Save tryperl/5082525 to your computer and use it in GitHub Desktop.
Save tryperl/5082525 to your computer and use it in GitHub Desktop.
Created by www.tryperl.com.
#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