in reply to Re^2: Effective way in perl
in thread Effective way in perl
`$swlist -l depot @ $depot_locn | $grep $rel_string | $grep $i | $grep + AR >> blah`
which isn't pure perl code anyway, is it? (It's convenient to call grep 3 times, but might be more efficient to do with Perl's own grep.) Here, you're using perl just like you would use sh.
But to address your question, try:
But if you need append, I don't think tee can do that.`$swlist -l depot @ $depot_locn | $grep $rel_string | $grep $i | $grep + AR | tee file1 | tee file2 | tee file3 >> tee file4`
Also take a look at Regexp Quote Like Operators and What's wrong with using backticks in a void context?
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Effective way in perl
by parv (Parson) on Jul 18, 2009 at 10:28 UTC |