Ramnarayan
Programmer
I am trying to modify all the scripts to work in a way that from the command line, I should be able to call a subroutine in the perl script to be executed without having to pass through all the sub routines in the program. For example,
abc.pl
======
&create_pdfs;
&create_gifs;
&create_pdf_inv;
&create_gif_inv;
sub create_pdfs(){...}
sub create_gifs(){...}
sub create_pdf_inv(){...}
sub create_gif_inv(){...}
Now what I want to do is that from the command line, when I execute abc.pl, I should be able to execute only the subroutine create_pdfs() only and the other subroutines should never be executed.
Can someone tell me how to pass the subroutines to a command line?
Thanks for your support and time.
abc.pl
======
&create_pdfs;
&create_gifs;
&create_pdf_inv;
&create_gif_inv;
sub create_pdfs(){...}
sub create_gifs(){...}
sub create_pdf_inv(){...}
sub create_gif_inv(){...}
Now what I want to do is that from the command line, when I execute abc.pl, I should be able to execute only the subroutine create_pdfs() only and the other subroutines should never be executed.
Can someone tell me how to pass the subroutines to a command line?
Thanks for your support and time.