That seems subjective to me. I don't find qx{} or $() any more legible than backticks (perhaps less so because I'm used to using backticks), but YMMV. I guess that why TIMTOWTDI.<br><br><div class="gmail_quote">On Fri, Dec 19, 2008 at 5:39 PM, David Alban <span dir="ltr"><<a href="mailto:extasia@extasia.org">extasia@extasia.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">both in perl and in shell backticks produce less readable code and in<br>
both languages there's a Better Way To Do It.<br>
<br>
use qx{ } in perl and $( ) in shell. there is no reason to use<br>
backticks ever again.<br>
<br>
in shell, $( ) has the additional benefit of being nestable.<br>
<br>
for qx{ } see the perlop man page. for $( ) see the bash (or ksh) man page.<br>
<div class="Ih2E3d"><br>
On Fri, Dec 19, 2008 at 11:04 AM, Jeff Bragg <<a href="mailto:jackofnotrades@gmail.com">jackofnotrades@gmail.com</a>> wrote:<br>
> You can also use backticks if you want to save/use the output, as in:<br>
><br>
> my @batch_cmd_output = `./myshellscript -opt1 -opt2`;<br>
<br>
</div><font color="#888888">--<br>
Live in a world of your own, but always welcome visitors.<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
SanFrancisco-pm mailing list<br>
<a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
</div></div></blockquote></div><br>