in reply to Re^2: Recursive image processing (with ImageMagic)
in thread Recursive image processing (with ImageMagic)

There is nothing unclear about if (@ARGV == 0) which quite intuitively translates to "if the number of arguments is zero." Your alternatives are all fine, too, but there is no reason other than personal preference to prefer one over the other.


When's the last time you used duct tape on a duct? --Larry Wall

Replies are listed 'Best First'.
Re^4: Recursive image processing (with ImageMagic)
by Anonymous Monk on Nov 23, 2012 at 09:58 UTC

    There is nothing unclear (or evil, odd ) about your statement :) My small critic was not about clarity, but style -- perlishness

    "if no arguments" is more natural, its perlish

    If you feel like putting a number on it, you might say "if zero arguments" , but it doesn't follow the code

    if( @ARGV == 0 ) if numarg is zero if( 0 == @ARGV ) if zero is numargv