-
Passing array values as parameters
How can I pass array values as parameters to a function.
For e.g. I have an array IP address and depending on a command line arg (say a mean 10.10.10.10) I want to telnet to a certain host using expect. How do i do this?
I tried passing the array val using $ARRAY($ARG) but this gives me an error saying
can't read "var1": no such variable
where var1 is the argument for $ARRAY($ARG) in the proc
The Problem is Choice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|