diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-07-29 21:20:28 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-07-29 21:20:28 +0000 |
commit | 369b44b45b100ebccc1e9e9ec79851683e716faa (patch) | |
tree | 0f7915cf614f2c1baa53a36d7f0671f1cece49e0 /pod/perlfaq4.pod | |
parent | 2e332e71a8ad1fdc9da83d7af3110f2cf49b4127 (diff) | |
download | perl-369b44b45b100ebccc1e9e9ec79851683e716faa.tar.gz |
FAQ sync.
p4raw-id: //depot/perl@20330
Diffstat (limited to 'pod/perlfaq4.pod')
-rw-r--r-- | pod/perlfaq4.pod | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pod/perlfaq4.pod b/pod/perlfaq4.pod index 818225bc67..5e10a11ad5 100644 --- a/pod/perlfaq4.pod +++ b/pod/perlfaq4.pod @@ -1,6 +1,6 @@ =head1 NAME -perlfaq4 - Data Manipulation ($Revision: 1.43 $, $Date: 2003/02/23 20:25:09 $) +perlfaq4 - Data Manipulation ($Revision: 1.44 $, $Date: 2003/07/28 17:35:21 $) =head1 DESCRIPTION @@ -762,6 +762,19 @@ case", but that's not quite accurate. Consider the proper capitalization of the movie I<Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb>, for example. +Damian Conway's L<Text::Autoformat> module provides some smart +case transformations: + + use Text::Autoformat; + my $x = "Dr. Strangelove or: How I Learned to Stop ". + "Worrying and Love the Bomb"; + + print $x, "\n"; + for my $style (qw( sentence title highlight )) + { + print autoformat($x, { case => $style }), "\n"; + } + =head2 How can I split a [character] delimited string except when inside [character]? Several modules can handle this sort of pasing---Text::Balanced, |