[tpm] getopt question?
Jim Graham
james.a.graham at gmail.com
Thu Aug 7 11:05:44 PDT 2008
Hi
Use multiple -f options
$ perl_script -i ftp.host.com -f file1 -f files2 -p 760
- Jim
On 7-Aug-08, at 1:58 PM, Herman Anker wrote:
>
> 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.
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
More information about the toronto-pm
mailing list