diff options
author | daniel <danieruru@gmail.com> | 2013-01-24 00:16:13 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-24 00:16:13 +0900 |
commit | 0aa0890888c28cff1a2f7b15e8ccda050bce08a8 (patch) | |
tree | 06eaefb397fec5f7fdc4c49771b0ee69c1d6f263 | |
parent | d31d69b338c7fef5583ec705c1e748c2a2aeaba6 (diff) |
Named parameters for write()
-rw-r--r-- | libvxi11client/perlbits/testscript.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvxi11client/perlbits/testscript.pl b/libvxi11client/perlbits/testscript.pl index 7bcfda6..f9653b6 100644 --- a/libvxi11client/perlbits/testscript.pl +++ b/libvxi11client/perlbits/testscript.pl @@ -10,7 +10,7 @@ vxi_startinterruptserver(); my $instr = vxi_open("roi", 0); $instr->vxi_lock(0); -$instr->vxi_write("*IDN?", -1, 0, 0); +$instr->vxi_write(data => "*IDN?"); my ($bytes, $buff, $reason) = $instr->vxi_read(256, 0, 0, 0); print "got " . $bytes . ";" . $buff . " reason " . $reason ."\n"; |