I tried this and get an uninitalized value error in the print
Are you sure the warnings comes from that line? The line you've shown produces "Use of uninitialized value in concatenation" (and not print), so maybe a different line is to blame?
Also I can recommend to use perl 5.10 or newer, it often tells you which variable was actually undefined.
That said your piece of code can produce such warnings when @array1 contains undef elements - what do you want to do in that case?
In reply to Re: Print both elements in a compare
by moritz
in thread Print both elements in a compare
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |