Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Ian] Sharing variable between install.pm and plugin.pm

Quote Reply
Re: [Ian] Sharing variable between install.pm and plugin.pm In reply to
You can store a version number for a plugin the following way:
Place the following code, where you want to check your version number.
Code:
my $myplugin_version = GT::Plugins::myplugin::version();

In your myplugin.pm file, insert a version function like this:
Code:
sub version {
my $ver = "1.23";
return $ver;
}

And a shorter version:
Code:
sub version {
return "1.23";
}

I hope this will help.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread Sharing variable between install.pm and plugin.pm Ian 6116 May 18, 2002, 10:08 AM
Thread Re: [sooke] Sharing variable between install.pm and plugin.pm
webmaster33 5957 May 20, 2002, 2:25 AM
Thread Re: [webmaster33] Sharing variable between install.pm and plugin.pm
Ian 5898 May 20, 2002, 7:58 AM
Thread Re: [Ian] Sharing variable between install.pm and plugin.pm
pugdog 5914 May 27, 2002, 3:41 AM
Post Re: [pugdog] Sharing variable between install.pm and plugin.pm
webmaster33 5866 May 27, 2002, 3:52 AM
Thread Re: [pugdog] Sharing variable between install.pm and plugin.pm
Ian 5937 May 27, 2002, 8:19 AM
Thread Re: [Ian] Sharing variable between install.pm and plugin.pm
webmaster33 5883 May 27, 2002, 8:39 AM
Thread Re: [webmaster33] Sharing variable between install.pm and plugin.pm
Ian 5899 May 27, 2002, 9:20 AM
Thread Re: [Ian] Sharing variable between install.pm and plugin.pm
pugdog 5855 May 28, 2002, 9:21 AM
Thread Re: [pugdog] Sharing variable between install.pm and plugin.pm
Ian 5866 May 28, 2002, 9:28 AM
Thread Re: [Ian] Sharing variable between install.pm and plugin.pm
Paul 5854 May 28, 2002, 9:40 AM
Post Re: [Paul] Sharing variable between install.pm and plugin.pm
Ian 5833 May 28, 2002, 9:44 AM