You can store a version number for a plugin the following way:
Place the following code, where you want to check your version number.
In your myplugin.pm file, insert a version function like this:
my $ver = "1.23";
return $ver;
}
And a shorter 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...
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...