perlquestion
ikkeniet
This is probably a stupid beginners question but one has to begin somewhere...
<br><br>
I have a perl file that contains a whole bunch of subroutines. I have a set of different perl scripts that would reuse the subroutines so that I do not have to copy paste the routines all the time.
<br><br>
An important question I have regarding this is that when above is possible, are the variables then known in the load shared library.
<br><br>
Example:<br>
mainscript.pl<br>
<code>
$hello="hello123";
&hello;
</code>
<br><br>
routines.pl contains<br>
<code>
sub hello {
print $hello;
}
</code>