I have a perl script that accepts a long option like --pager='less -R' and I want to shorten it to -p only. It’s a quick hack, I don’t know perl and I’m assuming the most direct way is to search and replace -p in the ARGV array (or whatever it’s called in perl) with –pager=’less -R’ before it starts to process the command line arguments.
I have a perl script that accepts a long option like –pager=’less -R’ and
Share
You can use
as a quick hack. Just do not enter
-pas a value to any option. Also, always use a space after-p.