in reply to passing parameters from shell script to perl program doesn't preserve spaces [solved]
What shell are you using? If it's bash, you can use an array to hold the parameters:
#! /bin/bash X=( 'a b' 'c d' e ) test.pl "${X[@]}"
Update: Inserted the 1st paragraph.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing parameters from shell script to perl program doesn't preserve spaces
by Discipulus (Canon) on Dec 20, 2016 at 13:00 UTC | |
|
Re^2: passing parameters from shell script to perl program doesn't preserve spaces
by peterbk (Initiate) on Dec 20, 2016 at 13:30 UTC | |
by haukex (Archbishop) on Dec 20, 2016 at 13:36 UTC |