Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: How can I read and print lines that has only one word from a file

by Anonymous Monk
on Jul 15, 2002 at 04:30 UTC ( [id://181694]=note: print w/replies, xml ) Need Help??


in reply to Re: How can I read and print lines that has only one word from a file
in thread How can I read and print lines that has only one word from a file

Yes I have a question. Does /^(\w+)$/ mean that lines that start with one word or contain one word?

Replies are listed 'Best First'.
Re^3: How can I read and print lines that has only one word from a file
by tadman (Prior) on Jul 15, 2002 at 04:43 UTC
    It means, literally, "start of line(^), followed by one-or-more word-characters(\w+), followed by end of line($)". This is one possible definition of "one word on line".

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-03-19 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found