![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: capturing stderr of echo piped to a fileby Crackers2 (Parson) |
on Oct 29, 2014 at 19:17 UTC ( #1105535=note: print w/replies, xml ) | Need Help?? |
Perhaps you should just try it?
Redirection order definitely DOES matter in the shell. (Hmm, unless it's shell-specific? I'm using bash) And just to do exactly what you said..
In the first case both print and warn go to the file, in the second case warn goes to stdout and print to the file.
In Section
Seekers of Perl Wisdom
|
|