I have a sub that reads a part p1 of a file and produces the expected output o1. When I change one variable in the code, it reads the part p2 and produces the expected output o2. Everything happens as expected. However, when I am trying to produce o1 and o2, in the same execution, it does not work. This ad hoc
$select_job = shift;
open (our $filehandle_in, "<", "input.txt") || die "Can't read inp
open (our $filehandle_out, ">", "output_$select_job.txt") || die "
+Can't write output_$select_job.txt: $!";
#job is done here
So, to be clear as fresh water: if I run this code changing for #Job_selection("1"); Xor #Job_selection("2");
it works; but it does not work when I call both
at the same execution.