On Mon, Apr 15, 2002 at 07:15:31PM +1000, Andrew Dilenis <[EMAIL PROTECTED]> 
wrote:
> 
> Hi.
> 
> Firstly I would like apologise if I shouldn’t have posted to the dev
> list.
> 
> I'm trying to make a customised 80Aliases00 template, however I don't
> think I am entering the correct syntax. Here is a copy of what I'm
> trying to enter:
> 
> $result .= "    AliasMatch      "^(/.*)?/__lib(.*)$"
> "/home/e-smith/files/primary/web/__lib$2"\n";
> $result .= "    AliasMatch      "^(/.*)?/__squizlib(.*)$"
> "/home/e-smith/files/primary/html/squizlib$2"\n";
> $result .= "    AliasMatch      "^(/.*)?/__data(.*)$"
> "/home/e-smith/files/primary/html/data/unrestricted$2"\n"
> $result .= "    AliasMatch      "^(/.*)?/_edit(.*)$"
> "/home/e-smith/files/primary/html/web/edit$2"\n"
> $result .= "    AliasMatch      "^(/.*)?$"
> "/home/e-smith/files/primary/html/web/index.php"\n"
> 
> Can anybody out there provide some insight into this.

Andrew,

First of all, you haven't told us why you think it's correct. (I see a
reason it isn't, but I don't know if that's the same thing you see.)

Secondly, you've got nested quotes. The first " opens the quote, the
second " ends it. Any quotes *within* that that you want to print out,
you need to escape --

  $foo = "This \"string\" has \"quotes\".\n";

Alternatively, you can use perl's handy qq() operator, which is
identical to double quotes:

   qq(This "string" has "quotes".);

Lastly, you've left off the semicolon from the end of most lines.

  -Rich

-- 
------------------------------ Rich Lafferty ---------------------------
 Systems Administrator/Support Engineer, Network Server Solutions Group
    Mitel Networks, Ottawa, ON                 +1 613 592 2122 (x2513)
---------------------------- [EMAIL PROTECTED]  ------------------------

--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to