sub transform
{
say "Frist variable $_[0]\
Second variable $_[1]";
}

&transform;   #call sub
&transform(arg1, arg2);   #call sub with params

See Also

Calling subs from separate script

Category:Perl