http://www.perlmonks.org?node_id=570908


in reply to && and and (well, you try searching for an answer)

&& and || should be used inside logical expressions while or should be used between statements for idiomatic error handling ("or die"). Finally, and is only useful for error handling with system.

Replies are listed 'Best First'.
Re^2: && and and (well, you try searching for an answer)
by Melly (Chaplain) on Sep 03, 2006 at 21:38 UTC

    Tnx all - the link to the earlier thread was particularily helpful.

    Tom Melly, tom@tomandlu.co.uk