MiniVend Akopia Services

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

Re: GlobalSub



I've been having major trouble passing vars to GlobalSubs as well. My solution has been to translate them into UserTags wherever possible. Try this:

UserTag display_results Interpolate 1
UserTag display_results Order artist
UserTag display_results Routine <<EOF
sub {
    my $artist = shift();
    return $artist;
}
EOF

If you put it in minivend.cfg, you should be able to avoid Safe checks. Call it with:

[display_results artist='[item-field artist]']

Let me know if it works,
-August
--
mailto:augustd@idiom.com


Search for: Match: Format: Sort by: