home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-perl-addon-1.4.9-installer.exe / ConTraEnc.pm < prev    next >
Encoding:
Perl POD Document  |  2002-06-14  |  1.3 KB  |  60 lines

  1. package MIME::Field::ConTraEnc;
  2.  
  3.  
  4. =head1 NAME
  5.  
  6. MIME::Field::ConTraEnc - a "Content-transfer-encoding" field
  7.  
  8.  
  9. =head1 DESCRIPTION
  10.  
  11. A subclass of Mail::Field.
  12.  
  13. I<Don't use this class directly... its name may change in the future!>
  14. Instead, ask Mail::Field for new instances based on the field name!
  15.  
  16.  
  17. =head1 SYNOPSIS
  18.  
  19.     use Mail::Field;
  20.     use MIME::Head;
  21.  
  22.     # Create an instance from some text:
  23.     $field = Mail::Field->new('Content-transfer-encoding', '7bit');
  24.  
  25.     # Get the encoding.
  26.     #    Possible values: 'binary', '7bit', '8bit', 'quoted-printable',
  27.     #    'base64' and '' (unspecified).  Note that there can't be a
  28.     #    single default for this, since it depends on the content type!
  29.     $encoding = $field->encoding;
  30.  
  31.  
  32. =head1 AUTHOR
  33.  
  34. Eryq (F<eryq@zeegee.com>), ZeeGee Software Inc (F<http://www.zeegee.com>).
  35.  
  36. =cut
  37.  
  38. require 5.001;
  39. use strict;
  40. use MIME::Field::ParamVal;
  41. use vars qw($VERSION @ISA);
  42.  
  43. @ISA = qw(MIME::Field::ParamVal);
  44.  
  45. # The package version, both in 1.23 style *and* usable by MakeMaker:
  46. $VERSION = substr q$Revision: 5.403 $, 10;
  47.  
  48. # Install it: 
  49. bless([])->register('Content-transfer-encoding');
  50.  
  51. #------------------------------
  52.  
  53. sub encoding {
  54.     shift->paramstr('_', @_);
  55. }
  56.  
  57. #------------------------------
  58. 1;
  59.  
  60.