in reply to Re: Converting a curl cli to perl with curl2perl gives me pain
in thread Converting a curl cli to perl with curl2perl gives me pain
I am using recent bash in linux
Anyway, I found the culprit: Getopt::Long's unhealthy obsession with case-insensitive command-line switches. curl's -H is confused to be your script's -h. Hence the usage message and exit.
Solution: add 'no_ignore_case': Getopt::Long::Configure('pass_through', 'no_ignore_case');
really useful script thanks
|
|---|