Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Opinions on usefulness of Perldoc

by busunsl (Vicar)
on Mar 26, 2001 at 13:46 UTC ( [id://67145]=note: print w/replies, xml ) Need Help??


in reply to Opinions on usefulness of Perldoc

Either your version of the docs is old or you have to read a bit more. The docs of perl 5.6.0 state the following:
m Treat string as multiple lines. That is, change "^" and "$" from matching the start or end of the string to matching the start or end of any line anywhere within the string. s Treat string as single line. That is, change "." to match any character whatsoever, even a newline, which normally it would not match.
and the next paragraph explains it even further.

I had problems with perldoc too, when I started to learn perl.
For a beginner the best she/he can do is buy the camel book.

But for a quick lookup of syntax the best is perldoc!

Replies are listed 'Best First'.
Re: Re: Opinions on usefulness of Perldoc
by chipmunk (Parson) on Mar 28, 2001 at 09:21 UTC
    This text is also present in the 5.005_03 documentation.

    Even the documentation that came with perl5.004 includes those two paragraphs:

    m Treat string as multiple lines. That is, change "^" and "$" from matching at only the very start or end of the string to the start or end of any line anywhere within the string, s Treat string as single line. That is, change "." to match any character whatsoever, even a newline, which it normally would not match.
    Although it lacks the followup explanation of the interactions between /s, /m, and $*.

    The original poster must have a very old version of Perl. Complaining about a lack of documentation in such an old version of Perl is pointless. The problem was found and fixed years ago; the solution is to upgrade.

Log In?
Username:
Password:

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

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

    No recent polls found