summaryrefslogtreecommitdiff
path: root/pod/perlfaq4.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-08 23:31:21 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-08 23:31:21 +0000
commitbc06af7496abc68809dea149d963eea3f2e007f9 (patch)
treeb6e392226a86425c808a9e0244d3186e2a799703 /pod/perlfaq4.pod
parent6eca140854a73c1ec4270b4256675f7be02d7709 (diff)
downloadperl-bc06af7496abc68809dea149d963eea3f2e007f9.tar.gz
FAQ sync.
p4raw-id: //depot/perl@12369
Diffstat (limited to 'pod/perlfaq4.pod')
-rw-r--r--pod/perlfaq4.pod11
1 files changed, 10 insertions, 1 deletions
diff --git a/pod/perlfaq4.pod b/pod/perlfaq4.pod
index 72eb8d8dee..195248bd38 100644
--- a/pod/perlfaq4.pod
+++ b/pod/perlfaq4.pod
@@ -1,6 +1,6 @@
=head1 NAME
-perlfaq4 - Data Manipulation ($Revision: 1.2 $, $Date: 2001/09/26 15:42:12 $)
+perlfaq4 - Data Manipulation ($Revision: 1.3 $, $Date: 2001/10/03 23:08:02 $)
=head1 DESCRIPTION
@@ -507,6 +507,15 @@ Use Text::Wrap (part of the standard Perl distribution):
The paragraphs you give to Text::Wrap should not contain embedded
newlines. Text::Wrap doesn't justify the lines (flush-right).
+Or use the CPAN module Text::Autoformat. Formatting files can be easily
+done by making a shell alias, like so:
+
+ alias fmt="perl -i -MText::Autoformat -n0777 \
+ -e 'print autoformat $_, {all=>1}' $*"
+
+See the documentation for Text::Autoformat to appreciate its many
+capabilities.
+
=head2 How can I access/change the first N letters of a string?
There are many ways. If you just want to grab a copy, use