Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How to to search for an multiple words in a file using regular expressions

by Phenomanan (Monk)
on Oct 12, 2016 at 13:59 UTC ( [id://1173838]=note: print w/replies, xml ) Need Help??


in reply to Re: How to to search for an multiple words in a file using regular expressions
in thread How to to search for an multiple words in a file using regular expressions

I second this, you have to at least attempt the problem yourself before asking for help. It isn't just about integrity; you will never become a good programmer if you just immediately ask for the answer to even such small tasks as this. Granted, you might not actually be interested in programming and are just trying to pass a required class, but there is still a lot to learn logically from problems such as this. It's good mental exercise!

One tip from me would be that if you are more familiar with another language (say Java or Python), you can try to solve the problem in that language first so you don't get bogged down with syntax, and then apply the same logic/structure in perl.

  • Comment on Re^2: How to to search for an multiple words in a file using regular expressions

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-18 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found