Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: perldoc Bold, Italic etc

by jkeenan1 (Deacon)
on Aug 29, 2021 at 16:59 UTC ( [id://11136182]=note: print w/replies, xml ) Need Help??


in reply to perldoc Bold, Italic etc

Could you post the sample text in plain-text so that we can play around with it directly?
Jim Keenan

Replies are listed 'Best First'.
Re^2: perldoc Bold, Italic etc
by miguelnixon (Novice) on Aug 31, 2021 at 09:06 UTC
    Many thanks to all for your replies.
    The only solution is: perldoc -oman func.pl
    It's easy enough to create an alias for this.
    Sounds almost as if perldoc 5.30 now defaults to plain text instead of pod formatting.
    Glad I now can see my documentation as intended ;-)
    Here's the plain text I was playing with:

    #!/usr/bin/perl
    print "a perl script\n";

    __END__

    =head1 B<Bold heading>

    =over 4

    =item * I<Italic item>

    Description of the first argument.

    =item * I<also Italic>

    Description of the second argument.

    =back

    =cut

    Thanks again everyone. Cheers!
        Thanks for the feedback, Rolf
        Herewith same command on both machines
        Mint 20 perl 5.30:
        mike@MiguelDeskXFCE20B:~$ perldoc -D CGI Ending switch processing. Args are [CGI] with 0 errors. Pagers: /usr/bin/sensible-pager, more, less, pg, view, cat/usr/bin/per +ldoc => Pod::Perldoc v3.2801 Formatter class Pod::Perldoc::ToText version 3.28 successfully loaded! Will format with the class Pod::Perldoc::ToText

        and on my Mint 19 laptop with perl 5.22:
        mike@MiguelDell ~ $ perldoc -D CGI Ending switch processing. Args are [CGI] with 0 errors. Pagers: /usr/bin/sensible-pagermorelesspgviewcat/usr/bin/perldoc => Po +d::Perldoc v3.25 Formatter class Pod::Perldoc::ToTerm version 3.25 successfully loaded! Will format with the class Pod::Perldoc::ToTerm

Log In?
Username:
Password:

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

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

    No recent polls found