You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ke...@uktransco.com on 2001/02/20 13:23:53 UTC
modperl book chapter 7 - correction
I don't know if anyone has mentioned this before (it is still wrong
on www.modperl.com), but as far as I can see the
'Apache::DefaultTrans' example in chapter7 of the modperl book
contains an error, the line:
if($uri !~ m:^/: or index($uri, '*')) {
should really be:
if($uri !~ m:^/: or index($uri, '*') != -1) {
because index returns -1 if the substring does not exist, and -1
evaluates as true.
Kees Vonk
Internet Programmer
7249 27705
______________________________________________________________________
The views expressed in this email are not necessarily the views of
Transco plc, and the company, its directors, officers or employees
make no representation or accept any liability for its accuracy or
completeness unless expressly stated to the contrary.
This e-mail, and any attachments are strictly confidential and
intended for the addressee(s) only. The content may also contain
legal, professional or other privileged information. If you are not
the intended recipient, could you please notify the sender
immediately and then delete the e-mail and any attachments, you
should not disclose, copy or take any action in reliance of this
transmission. Unless expressly stated to the contrary, no contracts
may be concluded on behalf of Transco plc by means of e-mail
communication.
You may report the matter by calling us on +44 (0)1455 230999.
You should not copy, forward or otherwise disclose the contents of
this e-mail or any of its attachments without express consent.
Please ensure you have adequate virus protection before you open or
detach any documents from this transmission. Transco plc does not
accept any liability for viruses.
Transco plc is part of Lattice Group
Transco plc is registered in England: Company number: 2006000
Registered Office: 130 Jermyn Street, London, SW1Y 4UR
http://www.transco.uk.com