my %file; @routers{@ARRAY} = undef; die "Bad zero_arg" unless exists $routers{$zero_arg}; my %interfaces; @interfaces{@anotherarray} = undef; unless (exists $interfaces{$sec_arg)) { #Do stuff } # OR this, if appropriate return if exists $interfaces{$sec_arg}; #Do stuff
In reply to RE: Answer: HOw do I compare two strings against to arrays respectively
by runrig
in thread How do I compare two strings against two arrays respectively?
by dallok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |