I do agree with you about OO approach. Maybe at some point I will rewrite those scripts. But I cannot split SUBS.pl - it is being used by 20 other scripts and it would be maintenance nuisance to have to adjust those subroutines in 20 different places. For now I defined a subroutine in SUBS.pl specifically for setting variables in that file - and I call it in A.pl with command line options - not the prettiest solution but works.