MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Embedded Perl and email addresses



******    message to minivend-users from Joe Hourcle <oneiros@dcr.net>     ******



On Mon, 15 Feb 1999, Colin Mitchell wrote:

> ******    message to minivend-users from "Colin Mitchell" <colin@5points.net>     ******
> 
> 
> Hi All - I'm trying to use embedded Perl to store a record of each
> transaction that goes through Minivend.  Without going into details on all
> of the other problems I've found (and mostly solved), here's my current big
> one:  I can't store the email address given by the user, since it has an
> ampersand in it and I think that perl is trying to interpret it incorrectly.
> Being neither a Minivend nor Perl expert, I haven't had much luck figuring
> out how to escpae the @.  All of the standard escape stuff in minivend
> hasn't worked.  Does anyone have any suggestions, or know what to do?
> Thanks in advance - Colin

@ is a marker for 'array' in perl.

I would think you would have to do:

	s/\@/\\\@/g

to escape it correctly before using it in a string.

-----
Joe Hourcle
Digital Crescent, Inc.

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: