Akopia Akopia Services

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

Re: [mv] Perl and minivend tags



******    message to minivend-users from Bill Randle <billr@exgate.tek.com>     ******

I don't know which address you need to convert, but something like this maybe:

[set address1 interpolate=1][value b_address1][/seti]
[perl]
	$Safe{'Scratch'}->{address1} =~ s/ /+/;
[/perl]
<B>Address:</B> [scratch address1]

or

[mvasp]
<%
	my $address = $Values->{b_address1} =~ s/ /+/;
	HTML("<B>Address:</B> $address"):
%>
[/mvasp]


	-Bill Randle
	billr@exgate.tek.com


matjones@mickey.korksoft.com wrote:
> 
> ******    message to minivend-users from matjones@mickey.korksoft.com     ******
> 
> I hope someone can help! Here is my intention:
> 
> On my fly page I need to change my address field so each word is separated
> by the + symbol instead of a space. This should be a temporary change and
> not affect other istances of my address tag for the rest of my site.
> I know that I need to use the [perl] tag and that i need to do a s/ /+/;
> somewhere in there. I am not sure on how to get the address field so it
> can be read as a variable within the script tag, and how to implement that
> variable as a minivend tag once the conversion is done!
> 
> thanks
> 
> Mathew A. Jones
> booksellersolutions.com
-
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: