jrhaggie has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I am new to PERL and I am trying to implement a simple pattern matching script for our monitoring solution. Basically I receive some events and the nodename is listed at "hostname.ms.com". I need the nodename to be "hostname" with the ".ms.com" stripped off.
Someone mentioned a solution in the chatterbox section of this website but the solution scrolled off before I could write it down. Any pointers would be very helpful. Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pattern matching question
by kennethk (Abbot) on Jul 19, 2011 at 18:27 UTC | |
by AnomalousMonk (Archbishop) on Jul 19, 2011 at 18:37 UTC | |
by jrhaggie (Initiate) on Jul 20, 2011 at 15:45 UTC | |
by kennethk (Abbot) on Jul 20, 2011 at 16:03 UTC | |
by jrhaggie (Initiate) on Jul 20, 2011 at 15:32 UTC | |
by choroba (Cardinal) on Jul 20, 2011 at 15:36 UTC | |
by jrhaggie (Initiate) on Jul 20, 2011 at 20:17 UTC | |
by kennethk (Abbot) on Jul 20, 2011 at 20:46 UTC | |
|
Re: pattern matching question
by Tanktalus (Canon) on Jul 19, 2011 at 22:27 UTC | |
by AnomalousMonk (Archbishop) on Jul 20, 2011 at 05:35 UTC |