[tpm] getopt question?

Herman Anker hanker at ifdsgroup.com
Thu Aug 7 10:58:40 PDT 2008


How do I get "file2" into @local_files???

$ perl_script -i ftp.host.com -f file1 file2 -p 760 -d incoming
file1

----------------------------------------------------

Code:
Getopt::Long::GetOptions(
        'd:s' => \$dest_dir,
        'P:s' => \$port,
        'f=s@' => \@local_files,
        'i=s' => \$dest_host,
        );

print "@local_files\n";


Any suggestions appriciated.


-----------------------------------------
This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law.  If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender.  If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.


More information about the toronto-pm mailing list