The proper way to open()
Paul Johnson
paul at pjcj.net
Wed Feb 1 14:36:10 GMT 2012
On Wed, Feb 01, 2012 at 01:34:05PM +0000, Smylers wrote:
> Until I started using Perl I'd only ever seen an OR operator (however
> spelt) used for combining boolean expressions, such as:
>
> if (!$awoke || $booted > $awoke)
>
> The concept of 'or if that command failed, here's what to do instead'
> was new to me. I liked it, and that there was an operator for it.
This concept will be familiar to shell programmers. I wonder whether it
is older than that though. Does anyone have any earlier examples?
--
Paul Johnson - paul at pjcj.net
http://www.pjcj.net
More information about the london.pm
mailing list