Hello
I have simple script that will accept as arg string like this :
".../foo/blah/,.../.../foo1/,.../blah"
now perl automatically removes the slashes "/" , I can't escape the slashes in the input I have to control on it
so how can I force perl to not touch this slashes?
If you feel more comfortable looking at your own example:
Even though you said you cannot control the controlling process, but actually it is that process that has made an incorrect assumption that parameters need not be quoted, but the fact is special characters are treated specially by the shell.
For instance, the bash manpage has this:
So you have no option but to teach the process that generates the command to quote the parameters or escape the offending characters (\ $ etc.), because the backslashes have already been gone by the time they reach Perl. Perl has no way of getting them back!
I want to execute a perl program that has an argument like this:
sys_db2actp_runstats_AUTOSYS.pl "/db2qdir1/scripts/db2" db2actq EMLNK_DB
in UNIX. It doesn't accept the /db2qdir1/scripts/db2 argument. I have tried enclosing with double quotes, single quotes, tick marks "`", and no quotes. What am I doing wrong ?