in reply to Re: Help display when executing the script
in thread Help display when executing the script
As "h" is true that expression will always be true.
To be pedantic, it is not because "h" is true that the expression is true, otherwise
if ( @ARGV = 0 )would evaulate to false, which it doesn't.
Rather, if my reading of perlop is correct, it is because the assignment operator returns true (or more strictly, the number of elements assigned to @ARGV):
my $return = @ARGV = ( 1, 2, 3 ); print $return;
prints 3.
Update: fixed typos in text.
|
|---|