Created
March 3, 2015 19:49
-
-
Save edt11x/09a10cb54cbf2c105038 to your computer and use it in GitHub Desktop.
Print the PATH with each directory on a separate line
This file contains 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Env; | |
if ($^O eq "MSWin32") { | |
print join($/, split(/;/, $PATH)), "\n"; | |
} else { | |
print join($/, split(/:/, $PATH)), "\n"; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment