-
Notifications
You must be signed in to change notification settings - Fork 578
Document a way to perform use Module VERSION LIST
on the command-line
#19002
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
Conversation
The `split(/,/,q{foo,bar})` seems to still happen. This is the currently documented case: $ perl -MO=Deparse '-MList::Util=any,all' -e1 use List::Util (split(/,/, 'any,all', 0)); '???'; -e syntax OK And these work too (and the split on comma also happens somehow): $ perl -MO=Deparse '-MList::Util any,all' -e1 use List::Util ('any', 'all'); '???'; -e syntax OK $ perl -MO=Deparse '-MList::Util 1.5' -e1 use List::Util 1.5; '???'; -e syntax OK $ perl -MO=Deparse '-MList::Util 1.5 any,all' -e1 use List::Util 1.5 ('any', 'all'); '???'; -e syntax OK
The split actually doesn't happen, this only works because strict is not active. |
-M is a very naive filter, it literally sticks the argument verbatim into a |
I would not approve of the current wording of this because it is B::Deparse that generates that syntax, not -M. |
Agreed. I was confused by the difference in the If I understand your comment correctly, it's the log message I should rework, not the actual documentation patch, right? |
I think mentioning that the quoted form without = can be used to insert a version check and quoted argument list would be useful. But it should be quoted in that case because the = argument splitting doesn't occur. |
Re-reading your comments after a day, I now fully understand all of your comments:
I'll rewrite the patch and the message to be more accurate, and force push on my branch again. |
@book pinging you about this |
@khwilliamson sorry, didn't find time to rewrite this in a satisfactory way yet. |
@book, can you provide us with an update on the status of this p.r.? Thank you very much. |
@book, any progress on this? Or should we close the ticket? |
I'll get back to it, after I'm done with #20337. |
@book maybe do this first? Its just a doc patch, so it should be easy to get it right and merged. |
The
split(/,/,q{foo,bar})
seems to still happen.This is the currently documented case:
And these work too (and the split on comma also happens somehow):