davidbelarus
Programmer
Gentlemen
i am converting my code to use proc and as proof of concept making basic proc functions:
this code gives this error: wrong # args: should be "printer a b c"
while executing
"printer { $brand $version $name }"
+++++code+++++
#!/usr/bin/expect -f
set brand 100
set version 1200
set name "hr20"
proc printer {a b c } {
puts "$a $b $c"}
printer { $brand $version $name }
i am converting my code to use proc and as proof of concept making basic proc functions:
this code gives this error: wrong # args: should be "printer a b c"
while executing
"printer { $brand $version $name }"
+++++code+++++
#!/usr/bin/expect -f
set brand 100
set version 1200
set name "hr20"
proc printer {a b c } {
puts "$a $b $c"}
printer { $brand $version $name }