Hi there,
I have this master script calling a few subroutines that are organized in different modules. For now I am using 'use' to get those subroutines loaded in my master script.
something like (really simplified):
####
#master.pl
####
use Mod1 qw(sub1);
use Mod2 qw(sub2);
...
foreach my $stuff(@bunchOfStuff)
{
$output1=&sub1(@inputArgs1);
$output2=&sub2(@inputArgs2);
}
####
My problem is that sometimes I want a subroutine to die but I don't want my master script to die with it...
I have been searching this forum and it seems that using PIPES to call my subroutines would solve my problem.
Since it would be an intensive work to modify everything from my module/subroutine structure to PIPES I'd like to make sure this is THE way to do it.
Any suggestions would be highly appreciated!
Thanks a lot!
Cheers,
Eve
I have this master script calling a few subroutines that are organized in different modules. For now I am using 'use' to get those subroutines loaded in my master script.
something like (really simplified):
####
#master.pl
####
use Mod1 qw(sub1);
use Mod2 qw(sub2);
...
foreach my $stuff(@bunchOfStuff)
{
$output1=&sub1(@inputArgs1);
$output2=&sub2(@inputArgs2);
}
####
My problem is that sometimes I want a subroutine to die but I don't want my master script to die with it...
I have been searching this forum and it seems that using PIPES to call my subroutines would solve my problem.
Since it would be an intensive work to modify everything from my module/subroutine structure to PIPES I'd like to make sure this is THE way to do it.
Any suggestions would be highly appreciated!
Thanks a lot!
Cheers,
Eve