in reply to Road to a readable path
However, the grep filters out the empty string. And so does the 2-arg split. But empty strings in PATHs under Unix are significant. So, I'd write:perl -E 'say for grep $_, split /:/, $ENV{PATH}'
perl -E 'say for split /:/, $ENV{PATH}, -1'
|
|---|