in reply to $1 does not reset to undef

Hi

the driver of your if-clause should be the match itself:

if(/^([\w\.]+)\s+Link.*$/) { # bla }

Regards
McA

Replies are listed 'Best First'.
Re^2: $1 does not reset to undef
by snk (Novice) on Oct 25, 2013 at 11:36 UTC
    Thanks for swift response..It works now. Thanks ;)