Xbert_badstuber wrote: > Error: Consecutive conditions at (.)/(.):(.*)$/) It's a regex error. > if (NAS-Port-Id =~ /^(.)/(.)/(.):(.*)$/) { /foo/bar/baz is wrong You need something like: /^(.)\/(.)\/(.):(.*)$/ i.e. escape the internal '/' characters. Alan DeKok.