in reply to throw a warning if no argument were passed

A tiny hint:

 elsif (@ARGV eq 0) {

may work "accidentally", but you want == to compare numbers. (How to remember that.)

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^2: throw a warning if no argument were passed
by Laurent_R (Canon) on Sep 22, 2015 at 15:22 UTC
    Yeah, in addition to your correct comment about eq vs. ==, I also noticed yesterday, but did not mention then (because it appeared to be slightly off-topic), that this test is also actually useless, since it comes in the else branch of a condition testing if (@ARGV > 0). Since the number of elements of an array can only be zero or a positive integer, it can only be 0 when it is strictly smaller that 1.