in reply to Re^2: Troubleshooting question
in thread Troubleshooting question
# single quotes prevent interpolation my $sed_command = 'sed -e :a -e "$d;N;2,3ba" -e "P;D" /db2/$DB2DBDFT/M +essages/temp.txt'; my $result = `$sed_command`; # passes a literal $d to sed, not the con +tents of the $d perl variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Troubleshooting question
by JavaFan (Canon) on Mar 23, 2010 at 16:56 UTC | |
by elittle (Initiate) on Mar 23, 2010 at 18:12 UTC | |
|
Re^4: Troubleshooting question
by elittle (Initiate) on Mar 23, 2010 at 17:17 UTC | |
by moritz (Cardinal) on Mar 23, 2010 at 18:08 UTC | |
by elittle (Initiate) on Mar 23, 2010 at 18:33 UTC | |
by JavaFan (Canon) on Mar 23, 2010 at 22:42 UTC |