in reply to Re: passing parameters from shell script to perl program doesn't preserve spaces
in thread passing parameters from shell script to perl program doesn't preserve spaces [solved]

Thanks @all for the hints.
Parameter passing from shells seems to be not as easy as I had thought.
Thus I have added another parameter to my perl program, which tells it to read the parameters from a file instead of the command line.
This works like desired and circumvents shell interpretations.
  • Comment on Re^2: passing parameters from shell script to perl program doesn't preserve spaces

Replies are listed 'Best First'.
Re^3: passing parameters from shell script to perl program doesn't preserve spaces
by Discipulus (Canon) on Dec 21, 2016 at 10:23 UTC
    oh! if you admit to read params from files you can find Modules as configuration files an interesting solution.

    Mixing it with xargs made it easy.

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.