At 12:57 PM 5/31/01 -0400, David Gilden wrote:
>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?
Your perldoc is suboptimal on your platform (a newer version of Perl is
likely to fix it). It's displaying formatting information literally
instead of translating it. When you see C<foo>, it means it should have
displayed "foo" in a constant-width font. And if you ran the page through
the pod2html translator, you'd see that. perldoc perlpod for more
information on the other formatting possibilities.
(I'm always getting people in my classes saying, "What's this '=head' stuff
when I do a perldoc -f like you told me to?" and I have to explain that
their perldoc is slightly broken, but it's still worth using...)
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com