Not sure if this belongs here, but anyway:
[hildrum:~] tor% perl -e '@ARGV = qw(1 2); if(scalar(@ARGV)==qw(2 3) )
{print "yes\n"}'
yes
[hildrum:~] tor%
[hildrum:~] tor% perl -e '@ARGV = qw(1 2); if(scalar(@ARGV)==(2, 3) )
{print "yes\n"}'
[hildrum:~] tor%
&&
[hildrum:~] tor% perl -e '@ARGV = qw(1 2 3); if(scalar(@ARGV)==(2, 3) )
{print "yes\n"}'
yes
[hildrum:~] tor%
[hildrum:~] tor% perl -e '@ARGV = qw(1 2 3); if(scalar(@ARGV)==qw(2 3) )
{print "yes\n"}'
[hildrum:~] tor%
Could someone please explain what is happening here?
I came across it, and had a hard time trying to figure out what was
going on.
Tor
- Re: qw(l i s t) vs (l, i, s, t) Tor Hildrum
- Re: qw(l i s t) vs (l, i, s, t) Stefan Stiasny
- Re: qw(l i s t) vs (l, i, s, t) Jasper McCrea
- Re: qw(l i s t) vs (l, i, s, t) Yitzchak Scott-Thoennes
- Re: qw(l i s t) vs (l, i, s, t) Randal L. Schwartz
- Re: qw(l i s t) vs (l, i, s, t) John Douglas Porter
- Re: qw(l i s t) vs (l, i, s, t) Randal L. Schwartz
- Re: qw(l i s t) vs (l, i, s, t) Jean-Pierre Vidal
- Re: qw(l i s t) vs (l, i, s, t) Tor Hildrum
