in reply to Unable to use if condition inside foreach loop using perl?

if(my $pattern =~ /^REVISION_LOCATION:/){

Please explain in plain English what this line is supposed to do.

Please explain every character or word you used there and describe its meaning and effect.

Replies are listed 'Best First'.
Re^2: Unable to use if condition inside foreach loop using perl?
by finddata (Sexton) on Mar 23, 2017 at 09:44 UTC
    There am checking for if the line starts with the word REVISION_LOCATION then the loop as follows.

      Honestly, I think you should review your previous questions, the responses you have had and take the advice given many times about learning the basics. Repeating the same mistakes means you're not learning from them.

        I'm very impressed how ignorant, unwilling to learn, unwilling to read, unwilling to show at least some effort, and unwilling to respect the rules you are while you still get excellent answers from people like Corion++, marto++, haukex++, thanos1983++, huck++, davido++, poj++ and others++. They are obviously much more patient and much more polite than I am, and I wonder when they will lose their patience.

        You are more than lucky that I'm just an ordinary monk, and that the monasty is not my own platform. I would have kicked you out and banned you from entering again about one week ago.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      Please explain every character or word you used there and describe its meaning and effect.

      In your reply, I cannot see how you explained for example the word my, the word $pattern_line and some others. Please try again.

      A reply falls below the community's threshold of quality. You may see it by logging in.