> in this case it should ideally throw some error but it just considers > a,b,c... as 0 ? why does it do that@a=qw( 1 2 3 4 a b c g f); $s=0; foreach $i(@a){ $s+= $i; } print $s; $perl a.pl 10
In reply to how does perl handle variables by jabirahmed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |