CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
How do I do this...

 

First page Previous page 1 2 Next page Last page  View All


TotalNoob
Novice

Jul 5, 2009, 3:22 PM

Post #26 of 29 (1317 views)
Re: [vikas.deep] How do I do this... [In reply to] Can't Post


In Reply To

Code
Perl defines the following zero-width assertions:    
\b Match a word boundary
\B Match except at a word boundary
\A Match only at beginning of string
\Z Match only at end of string, or before newline at
the end
\z Match only at end of string
\G Match only at pos() (e.g. at the end-of-match position of prior m//g)

A word boundary (\b ) is a spot between two characters that has a \w on one side of it and a \W on the other side of it (in either order), counting the imaginary characters
off the beginning and end of the string as matching a \W . (Within character classes \b represents backspace rather than a word boundary, just as it normally does in any double-quoted string.)

For details please see http://perldoc.perl.org/perlre.html#Regular-Expressions

Quote

Thank you, but I already read this info on that (and many other) sites and I don't understand it. It is as far as I understand, written for people that already know something perl. I don't, and that information doesn't make it any clearer. That's why I thought someone here could explain it in simple words, but I was wrong. Sorry for have taken your time.


vikas.deep
User

Jul 5, 2009, 10:56 PM

Post #27 of 29 (1306 views)
Re: [TotalNoob] How do I do this... [In reply to] Can't Post


Quote
Thank you, but I already read this info on that (and many other) sites and I don't understand it. It is as far as I understand, written for people that already know something perl. I don't, and that information doesn't make it any clearer. That's why I thought someone here could explain it in simple words, but I was wrong. Sorry for have taken your time.


Dear Friend

perl documentation is different from "many other sites".

In case of any doubt what so ever. There are only two authentic sources that one is referred to One the "Camel book" (now in 3rd ed) and Second Perl documentation itself.

You like everybody else should have a personal copy of "Camel book" (I am having 2ed) but let me tell (forewarn) you that except for the first few chapters rest of it you may find tough to understand.

But again if you are genuinely interested in learning Perl you will have to go through the Camel book at some or the other point in your life / carrier, so why not start today.

Forums like this help but they cannot be a replacement for building a foundation; programming tips or sharing of knowledge can only be a supplement to your efforts.

You need "Conceptual clarity" and for that best source is the camel book (No Body can ever dispute this), please spend some time reading and (more importantly) understanding it.

As you might already be knowing there are no easy solutions to anything

Quote
-For all my suggestions " I am sure someone else can do it in a better or elegant manner!"

(This post was edited by vikas.deep on Jul 5, 2009, 11:08 PM)


shawnhcorey
Enthusiast


Jul 6, 2009, 5:18 AM

Post #28 of 29 (1300 views)
Re: [vikas.deep] How do I do this... [In reply to] Can't Post


In Reply To
In case of any doubt what so ever. There are only two authentic sources that one is referred to One the "Camel book" (now in 3rd ed) and Second Perl documentation itself.


FYI, much of what is in the Camel book is already available to you. perldata is an almost word for word copy of chapter 2, and perlfunc is chapter 3.

To get a listing of Perl documentation, type in:

Code
perldoc perl


__END__

I love Perl; it's the only language where you can bless your thingy.

Perl documentation is available at perldoc.perl.org. The list of standard modules and pragmatics is available in perlmodlib.

Get Markup Help. Please note the markup tag of "code".


vikas.deep
User

Jul 7, 2009, 12:20 AM

Post #29 of 29 (1291 views)
Re: [shawnhcorey] How do I do this... [In reply to] Can't Post

shawnhcorey

Dear Sir

I am a bit old- fashioned and always prefer a textbook for learning, where in you can if you want underline important points and while reading jot down notes in your note-book.
Only after doing the above I switch on / boot my computer.

No doubt I will always prefer reading Camel book.



Quote
much of what is in the Camel book is already available to you. perldata is an almost word for word copy of chapter 2, and perlfunc is chapter 3.


This does not really means that Camel book is out, what about other chapters, I have not checked if other chapters are also word by word available in documentation.

A bit out of topic but even if that were true, can you dispute the feel of pen and paper. Remember only hard copy of any document is taken as an authentic version.

Quote
-For all my suggestions " I am sure someone else can do it in a better or elegant manner!"

First page Previous page 1 2 Next page Last page  View All
 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives