Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > =encoding

Reply
Thread Tools

=encoding

 
 
Ben Bullock
Guest
Posts: n/a
 
      09-02-2007
There seems to be a discrepancy between the documentation for perlpod and
its behaviour.

http://perldoc.perl.org/perlpod.html says

=encoding encodingname

This command is used for declaring the encoding of a document. Most
users won’t need this; but if your encoding isn’t US-ASCII or Latin-1,
then put a =encoding encodingname command early in the document so
that pod formatters will know how to decode the document. For
encodingname, use a name recognized by the Encode::Supported module.
Examples:

=encoding utf8

=encoding koi8-r

=encoding ShiftJIS

=encoding big5

However, perldoc says

../mymodule.pm:1: Unknown command paragraph "=encoding utf8"

pod2html produced a similar message.

It doesn't depend on the location of the =encoding since I tried putting
it in various positions.

Can anyone explain this?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57