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.
In reply to pattern matching question by jrhaggie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |