Hi below is the input file
nOte: if u r free look at this,otherwise dont read this
ipw.aa-acorp ipw.aa-ecior ipw.aa-semio ipw.aa5vcom ipw.aa9ttcom ipw.aaa-rest ipw.aaaa-uso ipw.aaaa4aco ipw.aaacoder ipw.000store45 ipw.007ontherocks ipw.00sprint ipw.06132009 ipw.07029smp ipw.0912news ipw.0blivion ipw.1-online-casino-gambling ipw.1000bamboo ipw.100call ipw.100livesthemovie ipw.amxcvv ipw.amfghtr ipw.amzhjl ipw.anartc ipw.angrtf ipw.aohyuy ipw.rbvfghtj ipw.rprhhjf ipw.rdfghy
when i read the above file and process using this script
foreach $username(@arry){ next if $username =~ /ipw\.[0-9]/i; next if ($username =~ /ipw\.a[^a-m][a-z]*/); print "$username \n";
its should print
ipw.anartc ipw.angrtf ipw.aohyuy ipw.rbvfghtj ipw.rprhhjf ipw.rdfghy
that means it should not skip if use name starts with ipw.an* and am * ...az

but its not skipping any thing


In reply to reg exp by venkatperl55

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.