Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Unable to use if condition inside foreach loop using perl?

by finddata (Sexton)
on Mar 23, 2017 at 09:44 UTC ( [id://1185586]=note: print w/replies, xml ) Need Help??


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

There am checking for if the line starts with the word REVISION_LOCATION then the loop as follows.
  • Comment on Re^2: Unable to use if condition inside foreach loop using perl?

Replies are listed 'Best First'.
Re^3: Unable to use if condition inside foreach loop using perl?
by marto (Cardinal) on Mar 23, 2017 at 09:49 UTC

    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". ;-)
        ... unwilling to show at least some effort ...

        The sad and strange thing to me is that finddata quite clearly has shown an enormous amount of effort, alas almost entirely misdirected toward creating post after redundant post rather than, as you pointed out, toward doing at least a little enlightening reading and experimentation on his or her own. Were it not for the sheer volume of these posts, I'd be inclined to suspect an elaborate trolling exploit. (Maybe it's a group effort. A cabal of diabolic Pythonistas...?)

        Update: Let me join you in expressing gratitude to and admiration for all those who have persevered in giving such excellent answers with such little apparent result.


        Give a man a fish:  <%-{-{-{-<

        "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..."

        I think you intended to post this in response to a post by finddata, not that I think it'd have much impact ;)

        > I would have kicked you out and banned you from entering again about one week ago.

        New accounts are cheap, but ignoring is cheaper! :)

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!

        It is you who is lucky you get to be a monk at all , very poor show afoken, very poor show
Re^3: Unable to use if condition inside foreach loop using perl?
by Corion (Patriarch) on Mar 23, 2017 at 09:47 UTC

    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1185586]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-25 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found