in reply to $1 does not reset to undef

TIMTOWTDI, try ...
my @arry=( 'bond0.2 Link encap:Ethernet', 'bond4.3:6 Link encap:Ethernet', 'bond3 Link encap:Ethernet', 'bond5:0 Link encap:Ethernet', 'bond1.5:2 Link encap:Ethernet', 'bond2.6 Link encap:Ethernet' ); print join "\n", grep ! /^[\w.]+:/, @arry;
A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^2: $1 does not reset to undef
by McA (Priest) on Oct 25, 2013 at 11:44 UTC

    Where's the last newline? ;-)

      Where's the last newline? ;-)
      Let the OP put it thus :)
      print join ("\n", grep ! /^[\w.]+:/, @arry),$/;

      If you tell me, I'll forget.
      If you show me, I'll remember.
      if you involve me, I'll understand.
      --- Author unknown to me
        TFT 2teez. BTW, sig++ ... and then some.

        A user level that continues to overstate my experience :-))