is giving me 20 (ie the length of array)@array = (1..20); @array1 = (2..10); print @array || @array1;
is giving me the second array completely. can anyone explain me how || operator will work for arrays@array = (); @array1 = (2..10); print @array || @array1;
In reply to Using || operator with arrays by perl_lover
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |