in reply to How do I check the status of a remote network

Since . is a regex metacharacter, you should escape it using quotemeta:
my $pattern0 = qutoemeta '192.168'; my $pattern1 = quotemeta '172.16';

Replies are listed 'Best First'.
Re^2: How do I check the status of a remote network
by at2marty (Novice) on Sep 15, 2011 at 20:45 UTC

    Thank you for that pointer toolie. I just read about using quotemeta. I had never seen or heard of it before.