Hi,
I am new to perl programming.
I have a requirement to validate the input received from the user with the file and send it to the printer.
For Eg:
script -o option -p printername -f filename
script - is the name of my script
-o option- is the option that has to be validated with another file
-p printername - is the name of my printer
-f filename - is the filename which has to be printed.
how to use this split function in this case. I want to take" -o option" and compare it with the file.
I already have a print queue ready. what is teh command to send the filename to the printer.
Please help me.
Thanks.
I am new to perl programming.
I have a requirement to validate the input received from the user with the file and send it to the printer.
For Eg:
script -o option -p printername -f filename
script - is the name of my script
-o option- is the option that has to be validated with another file
-p printername - is the name of my printer
-f filename - is the filename which has to be printed.
how to use this split function in this case. I want to take" -o option" and compare it with the file.
I already have a print queue ready. what is teh command to send the filename to the printer.
Please help me.
Thanks.
Comment