in reply to Re: Re: Extra Stuff
in thread Extra Stuff
Since you're checking the @array against a number it's automatically in scalar context. Also, putting it in one line allows you to continue your program without wrapping a large chunk of code in an if statement, which could confuse readability (where did this `}' come from?).#make sure we have the right number of elements carp "Incorrect number of elements" if @array != 14; #continue with the program...
Hope That Helps,
jynx
|
|---|