Akopia Akopia Services

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

Re: [mv] 4.02 How to use: uneval and uneval_it



******    message to minivend-users from "Ton Verhagen" <ton@verhagen.net>     ******

>It isn't obvious.
>
>[perl]
> my $ref = { qw/ foo bar / };
> $Tag->uneval( { ref => $ref });
>[/perl]
>
Works like a charm, thanks Mike!

I encountered a problem with a UserTag I made in combination with
Data::Dumper.
The Data::Dumper module works perfectly (also XSUB) with MV4.02
and other Perl programs!!

But when I do:
[perl]
my $ref = { foo => 'something',
            bar => 'something else',};
my $out = $Tag->uneval_fast({ref=>$ref});
return $out;
[/perl]

I get this error message:
Safe: Can't locate object method "Dumpxs" via package
"Data::Dumper" at
/usr/lib/perl5/5.00503/i386-linux/Data/Dumper.pm line 429.

Why is that?

The Tag definition in minivend.cfg:
UserTag uneval_fast Order ref
UserTag uneval_fast PosNumber 1
UserTag uneval_fast Routine <<EOR
sub {
 return Vend::Util::uneval_fast(@_);
}
EOR

Mike, you're little tool vg is a great. Thanks.

Ton


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