[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Embedded Perl Code
****** message to minivend-users from Dan Busarow <dan@dpcsys.com> ******
On Mon, 8 May 2000, Dennis Duval wrote:
> I'm trying to setup up a drop down box that will use Perl to assign the
> product categories from a database, but I'm having a hard time getting the
> embedded Perl script to output the HTML code that I want. My code looks
> something like this and is inserted into the page called 'leftside'.
>
> <select name="mv_searchspec">
> [perl]
> $cat_db = "/home/minivend/surplus/products/categories";
> open (FILE, "$cat_db") || die "Couldn't open category file";
Safe.pm won't let you do this. I believe you could use a GlobalSub to
get around the restriction but it would be a lot simpler to just add
categories as one of the MiniVend database and use a [loop]
Dan
--
Dan Busarow 949 443 4172
Dana Point Communications, Inc. dan@dpcsys.com
Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82
-
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