in reply to Re: HOw do I compare two strings against to arrays respectively
in thread How do I compare two strings against two arrays respectively?

Re-reading your problem (and if I understand it correctly), I'd do it this way:
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
  • Comment on RE: Answer: HOw do I compare two strings against to arrays respectively
  • Download Code