in reply to Re^3: Scope Issue
in thread Scope Issue

If you are constructing regular expressions, the qr operator is much more convenient:

my $match_live = qr/LIVE>.*$/;

If Net::Telnet does not want qr-quoted regular expressions, use single quotes to construct your string and not interpolate variables:

my $match_live = q'/LIVE>.*$/';

Replies are listed 'Best First'.
Re^5: Scope Issue
by MKJ747 (Acolyte) on Mar 15, 2011 at 15:50 UTC

    Thanks, Corion! That worked great. I used q with the single quotes. Thanks again for the help