Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by davido (Cardinal)
on Oct 12, 2016 at 06:42 UTC ( [id://1173800]=note: print w/replies, xml ) Need Help??


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

Crossposted to stackoverflow.

You are asking for help writing code, but have not provided any code of your own. Typically how this works is you show us how far you've been able to get on your own, and ask questions that we can answer to help you past where you are stuck.

It is generally expected that you will have done your own research to begin with. In this case, you can and should read perlintro and perlretut. Having read those you can write most if not all of the homework assignment yourself. And if you do get stuck, you will be able to show us the code you've written and where you're having trouble. I'm certain, at that point, that help will be forthcoming.


Dave

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

Replies are listed 'Best First'.
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

    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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-24 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found