[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Wishlist, request for namespace
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting cfm@maine.com (cfm@maine.com):
> ****** message to minivend-users from cfm@maine.com ******
>
>
> I'd like to put these on wishlist ;^)
>
> 1)
> We've been building our custom minivend libraries in lib/Vend and
> now wish to move them out to /usr/lib/perl5/MV because we want to share
> them with other non-minivend scripts. That's a bigger than minivend
> issue, but we can risk it; I'm mostly concerned that minivend not claim
> that space. With name change, maybe that is moot?
>
> 2)
> What is most sensible way to do this:
>
> [embed]
> my ($foo);
> $foo=new bar;
>
> [/embed]
>
> Other minivend stuff
>
> [embed]
>
> return $foo->blat;
>
> [/embed]
>
> Where [embed] tag is a fancy version of Mike's unsafe perl tag, eg
> it permits direct raw access to everything bypassing Safe. What we
> want is for $foo to live for duration of that page, maybe the
> same scope as $CGI? I think what we're looking for is another
> shortlived namespace that gets set up on a per page basis. We don't
> want it to go into Session. Is that what Scratch does? Am I making
> any sense?
I don't understand all of this. There is nothing at all stopping you
from:
cp -ra /usr/local/minivend/lib/Vend /usr/lib/perl5/site_perl
and
UserTag embed hasEndTag
UserTag embed Routine <<EOR
use MV::foo;
use bar;
use MV::buzz;
use MV::baz;
sub {
eval @_;
}
EOR
And there is no reason to use "my $foo" when you can say:
[embed]
use vars qw/$foo/;
$foo = new bar;
[/embed]
some stuff
[embed]
return $foo->blat;
[/embed]
--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.8220 fax 7501 <heins@akopia.com>
If you think nobody cares if you're alive, try missing a couple of
car payments. -- Earl Wilson
-
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