Sorry (again) that should be 'char *a[]'

R


> -----Original Message-----
> From: Rob Dixon [mailto:[EMAIL PROTECTED]]
> Sent: 06 September 2001 13:04
> To: Sutapalli eswara; 'Rob Dixon '
> Cc: Beginners@Perl. Org
> Subject: RE: Reg passing arguements
> 
> 
> Sorry, I misread the question.
> 
> The only way I can think of to do it is:
> 
> 
>     int i;
>     int a[] = {"one", "two", "three", "four", "five");
>     char command[64] = "perl script.pl ";
> 
>     for (i = 0; i < sizeof a / sizeof a[0]; ++i)
>     {
>         strcat (command, a[i]);
>     }
> 
>     system (command);
> 
>     exit (0);
> 
> 
> But there may well be a better way.
> 
> Cheers,
> 
> Rob
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to