[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Perl Question
****** message to minivend-users from Allan DeLeon <allan@sidepage.com> ******
Ooopsss... you forgot the closing single qoute in
my $temp = $Safe{'values'}->{'my_var};
should be: my $temp = $Safe{'values'}->{'my_var'};
Also, I've found that accessing Safe values will not
work unless you use [perl values]. You can even skip
using the temp var to save 2 lines of code. And if
your perl isn't going to return anything you should
put return '' at the end.
Try this:
[perl values]
$Safe{'values'}->{'my_var'} =~ s/\&/\//g;
return '';
[/perl]
On Wed, 3 Feb 1999, Thompson-Jordan wrote:
> ****** message to minivend-users from "Thompson-Jordan" <Thompson-Jordan@mindspring.com> ******
>
> Well, it was inevitable, I'm learning Perl. Here is my question. How to I
> change all of the &'s in a variable to /'s? Here was my try that does not
> work:
>
> [perl]
> my $temp = $Safe{'values'}->{'my_var};
> $temp =~ s/\&/\//g;
> $Safe{'values'}->{my_var'} = $temp;
> [/perl]
>
> -
> 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
>
-
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
- References:
- Perl Question
- From: "Thompson-Jordan" <Thompson-Jordan@mindspring.com>