Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added one liners for PATH like expressions #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added one liners for PATH like expressions #5

wants to merge 1 commit into from

Conversation

mithun
Copy link

@mithun mithun commented Nov 21, 2011

No description provided.

@pkrumins
Copy link
Owner

Do you know how to get the perl -MData::Dumper -MModule -e 'print Dumper \%INC' working without Module module? Also I don't find PATH ones useful so I won't be merging that part. You can just do echo $PATH | sed 's/:/\n/g'. Perhaps I'll change them to perl's perl -le 'print $_ for (split ":", $ENV{PATH})'

@mithun
Copy link
Author

mithun commented Nov 21, 2011

Do you know how to get the perl -MData::Dumper -MModule -e 'print Dumper \%INC' working without Module module?

I'm not sure if there's a way to do that without loading the module. Perhaps using something like Module::ScanDeps but then it cannot be run using a stock perl.

You can just do echo $PATH | sed 's/:/\n/g'.

Sure, that's easier. But only if you are on Linux or similar. Those PATH one-liners are pretty useful on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants