in reply to commands with multiple pipes in perl
You have to be careful which variables you interpolate, and which you don't:
my $file = 'stuff'; system qq[grep 'DataDictionary' $file | awk -F'<pciOFACViolation>' '{p +rint \$1}'|...]; # ^ interpolate + ^ don't interpolate
Update: see a similar discussion we have at the moment.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: commands with multiple pipes in perl
by raghu_shekar (Novice) on Mar 17, 2009 at 07:25 UTC | |
by moritz (Cardinal) on Mar 17, 2009 at 07:28 UTC | |
|