note
BazB
<p>
My brain doesn't cope well with
<code>
system("command") and die "Error message: $?";
</code>
</p>
<p>
Although the above is perfectly valid - as system returns zero for success, unlike every other perl function I can think of - I'd much rather use:
<code>
system("command") == 0 or die "Error message: $?";
</code>
...which makes it much more obvious (at least to me) what's going on.
</p>
<p>
Although I note that the examples in the perldoc use the latter approach, this is mostly a personal style point/grumble: feel free to ignore it.
</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-127547">
<hr />
<font size=1>
<p align=right>If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.<br>
That way everyone learns.</p>
</font>
</div></div>
449545
449579