Hi, I am a perl beginner. I have an output like below. I need to get an email if first field (USER1 or USER2) uses 30% of Total licenses issued.
Users of PRODUCT1: (Total of 10 licenses issued; Total of 9 licenses + in use) "PRODUCT1" v2013.03, vendor: snpslmd floating license USER1 host1 /dev/tty (v2011.03) (flexlmhost/1011 130759), start Fr +i 5/3 18:55 USER1 host1 /dev/tty (v2011.03) (flexlmhost/1011 96878), start Fri + 5/3 18:55 USER1 host2 /dev/tty (v2011.03) (flexlmhost/1011 42805), start Fri + 5/3 19:03 USER1 host3 /dev/tty (v2011.03) (flexlmhost/1011 38101), start Tue + 4/30 22:01 USER1 host3 /dev/tty (v2011.03) (flexlmhost/1011 56246), start Fri + 5/3 15:34 USER1 host3 /dev/tty (v2011.03) (flexlmhost/1011 134276), start Th +u 5/2 19:10 USER2 host4 /dev/tty (v2010.06) (flexlmhost/1011 29632), start Fri + 5/3 18:38 USER2 host4 /dev/tty (v2010.06) (flexlmhost/1011 29632), start Fri + 5/3 18:38 USER2 host4 /dev/tty (v2010.06) (flexlmhost/1011 29632), start Fri + 5/3 18:38 Users of PRODUCT2: (Total of 10 licenses issued; Total of 9 licenses + in use) "PRODUCT2" v2013.03, vendor: snpslmd floating license USER2 host5 /dev/tty (v2010.06) (flexlmhost/1011 18701), start Tue + 4/30 22:01 USER2 host6 /dev/tty (v2010.06) (flexlmhost/1011 40601), start Tue + 4/30 22:01 USER2 host7 /dev/tty (v2010.06) (flexlmhost/1011 15041), start Wed + 5/1 14:17 USER2 host8 /dev/tty (v2010.06) (flexlmhost/1011 9801), start Tue +4/30 22:01 USER2 host7 /dev/tty (v2010.06) (flexlmhost/1011 57099), start Fri + 5/3 18:23 USER2 host3 /dev/tty (v2010.06) (flexlmhost/1011 119742), start Fr +i 5/3 18:27 USER2 host2 /dev/tty (v2010.06) (flexlmhost/1011 126337), start Fr +i 5/3 18:27 USER2 host1 /dev/tty (v2010.06) (flexlmhost/1011 126190), start Fr +i 5/3 18:27 USER2 host4 /dev/tty (v2010.06) (flexlmhost/1011 29632), start Fri + 5/3 18:38

In reply to help need with flexlm by vkknava

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.