Hello rohan_532,

First of all welcome to the monastery.

I was reading through your question and it is not so clear to me, maybe another monk can understand but what you are trying to achieve?

Since you are already comparing your array with the string:

if (grep { /(?i)\Q$db_description\E/ } @steps_name)

What is that you want to get. Can you provide us a pseudo code of the input lines and the expected output. Provide us a sample of input data so we can replicate your problem. In general please update your question based on How do I post a question effectively?. Do not take this the wrong way help us more to help you.

Update: rohan_532 Do Not Re Post Your Questions on top of other questions that you have posted Re^2: regex for case insensitive. This will produce chaos on your questions and answers and also people that might refer to these questions on future.

Looking forward to your update.

Seeking for Perl wisdom...on the process of learning...not there...yet!

In reply to Re: compare individual string with complete array by thanos1983
in thread compare individual string with complete array by rohan_532

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.