Werner Otto wrote:

Hi All,

How would I go about calling a sub from a script from another script. I am trying to call that sub just to get the values in my current script and then perform aditional logic, other than duplicating the process?

Is this what you mean?

file1.pl:
#!/usr/bin/perl
use strict;

sub x {
 print "at x()\n";
}




file2.pl #!/usr/bin/perl use strict;

require "file1.pl";

x(); # prints "at x()\n"


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to