MiniVend Akopia Services

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

Re: Calling a Perl subroutine from within a checkout profile.



******    message to minivend-users from Erik Aase-Remedios <erik@fourfish.com>     ******

Right...    A GlobalSub and arbitrary perl code don't have the relationship
you think they do.  You could safe untrap open, but that might not be wise.

Here minivend is involing the subroutine directly:
[perl arg=sub interpolate=1]cc_auth[/perl]

Here minivend is invoking Safe to create a container for the perl code to
run in.
[perl values config]
$cc_auth_results = &cc_auth();
[/perl]

These are completely different things.  I doubt that your global subroutine
is in the same "package" as your evaluated perl code.

I suggest maybe trying something like this, but have no idea if it works.:

[perl values config interpolate=1]
$cc_auth_results = q{[perl arg=sub interpolate=1]cc_auth[/perl]}
[/perl]

The idea is to get minivend to run the GlobalSub and have it evaluated and
put in the perl code.

-Erik


-
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: