Hi folks,
In my effort to fully understand online documentation [ perldoc ]
I see all kinds of examples like the following :
This approach of treating C<print> and C<printf> like object methods
calls doesn't work for the diamond operator. That's because it's a
real operator, not just a function with a comma-less argument. Assuming
you've been storing typeglobs in your structure as we did above, you
can use the built-in function named C<readline>.....
I am not sure what they mean, is the C as in command line or as in construct?
-----
I am not following what /m modifier does (I am looking thru the camel books not no
luck so far)
# turn the line into the first word, a colon, and the
# number of characters on the rest of the line
s/^(\w+)(.*)/ lc($1) . ":" . length($2) /meg;
[ Last comment on perldoc, why am I seeing the leading "=" here: ]
=item Comments Inside the Regexp
The C</x> modifier causes whitespace to be ignored in a regexp pattern
(except in a character class), and also allows you to use normal
comments there, too. As you can imagine, whitespace and comments help
a lot.
Might be nice if in FAQ or on this list some might post a short tutorial
on using Perldoc. I just starting using it this week and I have on this list
for a month or so! Never was quite sure what the people meant when at the end of
their post with stuff like:
references:
perldoc perlmod
perldoc -f require
perldoc -f use
--------
Unrelated question:
In a library file can the last line can be "1;" or should be "return 1;"
Thanks :)
Dave
-- Writing CGI Applications with Perl -- just arrived, it should help out!
*====================================================*
* Cora Connection Your West African Music Source *
* http://www.coraconnection.com/ *
* Resources, Recordings, Instruments & More! *
*====================================================*