Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: First word

by Anonymous Monk
on Apr 24, 2008 at 09:10 UTC ( #682589=note: print w/replies, xml ) Need Help??

in reply to Re: First word
in thread First word

Winner winner, chicken dinner! (saw the movie 21 last night, it comes highly recommended). Yes thats perfect! Just so I can make sense of it and use it in future, any chance you could explain s/(\w+).*/$1/ Thanks again, it's perfect.

Replies are listed 'Best First'.
Re^3: First word
by toolic (Bishop) on Apr 24, 2008 at 13:32 UTC
    You can read all about the Substitution Operator in the free online documentation at perlretut. Search for "Search and replace". There are dazzling multi-color code examples complete with hyperlinks!

    Or, if you prefer reading from a book, Learning Perl is a good place to start.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2022-01-19 17:22 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (55 votes). Check out past polls.