[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [perl] tag is a cruel joke, and user-defined tags don't do jack , squat. HELP! How do I use Perl!?
>
> They say the best way to learn is by example. Could someone give
> me an example-- or more than one example-- of a way to display the output
> of:
>
> print "Hi there";
UserTag realperl HasEndTag
UserTag realperl CanNest
UserTag realperl Interpolate
UserTag realperl Routine <<EOF
sub {
my $str = eval {
eval $_[0] or die;
};
}
EOF
put that in your minivend.cfg and chew on it.
Anything between [realperl] [/realperl] will
be executed outside of safe mode (STRICTS on)
You might want to put some logging in to handle
$@.
Of course... nicer emails to the list would probably
get you even more helpful responses, but hey.
--
Anthony Ball ant@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
tel:1.207.657.5078 fax:1.207.657.5048 http://www.maine.com/