in reply to Re: Insert lines into specific stanza line
in thread Insert lines into specific stanza line
The second one is correct for what I am trying to accomplish. However I am getting the dreaded Use of uninitialized value in pattern match (m//)
here is my code
if ($change[$i] =~ /\b$ip\b/){ my $seen = 1; if ($seen && m{</stanza>}){ print $tl[0]; $seen = 0; }
What am I missing?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Insert lines into specific stanza line
by oko1 (Deacon) on Aug 14, 2010 at 00:03 UTC |