summaryrefslogtreecommitdiff
path: root/README.hpux
diff options
context:
space:
mode:
authorMilton Hankins {64892} <webtools@uewrhp03.msd.ray.com>2000-06-28 09:58:21 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2000-07-31 23:34:42 +0000
commit183968aae3318dd49f78ae56423591cbb37a918d (patch)
treed7a4ca947a50c5232564c10020650cf4ee156bd3 /README.hpux
parentdea0fc0b9e5a61b92c4be2ecafe0a8d9396d4cc1 (diff)
downloadperl-183968aae3318dd49f78ae56423591cbb37a918d.tar.gz
Document the problem with -P in HP-UX and its workaround.
Subject: [ID 20000628.002] HPUX 11: -Ae compiler flag breaks perl -P Message-Id: <200006281758.NAA10339@uewrhp03.msd.ray.com> p4raw-id: //depot/perl@6470
Diffstat (limited to 'README.hpux')
-rw-r--r--README.hpux19
1 files changed, 19 insertions, 0 deletions
diff --git a/README.hpux b/README.hpux
index 5fbddf759e..47d1afc5cc 100644
--- a/README.hpux
+++ b/README.hpux
@@ -241,6 +241,25 @@ If you are compiling Perl on a remotely-mounted NFS filesystem, the test
io/fs.t may fail on test #18. This appears to be a bug in HP-UX and no
fix is currently available.
+=head2 perl -P and //
+
+In HP-UX perl is compiled with flags that will cause problems if the
+-P flag of Perl (preprocess Perl code with the C preprocessor before
+perl sees it) is used. The problem is that C<//>, being a C++-style
+until-end-of-line comment, will disappear along with the remainder
+of the line. This means that common Perl constructs like
+
+ s/foo//;
+
+will turn into illegal code
+
+ s/foo
+
+The workaround is to use some other quoting characters than /,
+like for example !
+
+ s!foo!!;
+
=head1 AUTHOR
Jeff Okamoto <okamoto@corp.hp.com>