R
Rocky Allen
hi Y'all,
I am writing a backup script for an Oracle Database server on Linux. It
is very long so I only included the code I need help with here. The
entire script is published here. http://bobotheclown.org/scripts/comlang
I am trying to turn this code into a subroutine:
open(FH13, ">$contentsfile") or die "Couldnt get FH13:$!";
print FH13 @joblog;
print FH13 "\n";
print FH13 "breakpointforrecover\n";
print FH13 "\n";
print FH13 @Intersection;
print FH13 "\n";
print FH13 "\n";
print FH13 @splitnames;
close FH13;
My question is this:
Since I have to pass all of those arrays into the subroutine as @_, how
can I tell when one ends and the next begins?
I would like for it to be a subroutine because the only way I currently
get a logfile i if the backup runs successfully. I want it in any case.
regards,
Rocky Allen
I am writing a backup script for an Oracle Database server on Linux. It
is very long so I only included the code I need help with here. The
entire script is published here. http://bobotheclown.org/scripts/comlang
I am trying to turn this code into a subroutine:
open(FH13, ">$contentsfile") or die "Couldnt get FH13:$!";
print FH13 @joblog;
print FH13 "\n";
print FH13 "breakpointforrecover\n";
print FH13 "\n";
print FH13 @Intersection;
print FH13 "\n";
print FH13 "\n";
print FH13 @splitnames;
close FH13;
My question is this:
Since I have to pass all of those arrays into the subroutine as @_, how
can I tell when one ends and the next begins?
I would like for it to be a subroutine because the only way I currently
get a logfile i if the backup runs successfully. I want it in any case.
regards,
Rocky Allen