don't dream your life, live your dreams !
Create the following file : MyPerlModule.pm
use strict; use warnings; package MyPerlModule; sub method1 { my $param1 = shift; my $param2 = shift; (...) my $paramN = shift; # Here is my method1 implémentation. (...) } sub method2 { my $param1 = shift; my $param2 = shift; (...) my $paramN = shift; # Here is my method1 implémentation. (...) } # always finish perl module with true : 1; |
require "my/relativ/path/to/MyPerlModule.pm" |
# static call : MyPerlModule:method1(param1,param2,...,paramN); MyPerlModule:method2(param1,param2,...,paramN); |
Copyright © 2024 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.
admin