in reply to Re^2: Command-line arguments to command-line Perl
in thread Command-line arguments to command-line Perl
I wasn't able to get this to work, because perl seemed to think that the argument was meant for it, rather than the script,
Sorry. I don't often use -s with -e.
You have to use -- to delineate between switches meant for perl, and those meant for the -e script:
perl -pi -se's/.*'def'.*''/\t"def"=>"dumper\/$D.def",/g' -- -D=ADCIF C +onfigFile
Not very practical on the command line, but useful in shell scripts.
|
|---|