my %hash = map { $_ => 1 } 'a' .. 'f'; $hash{b} = 'added' unless exists $hash{b}; $hash{g} = 1 unless exists $hash{g}; print %hash; __output__ e1f1g1a1b1c1d1
_________
broquaint
In reply to Re: check element if inside an array
by broquaint
in thread check element if inside an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |