Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: $1 does not reset to undef

by Bloodnok (Vicar)
on Oct 25, 2013 at 11:41 UTC ( [id://1059625]=note: print w/replies, xml ) Need Help??


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 :-))

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1059625]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found