diff options
author | daniel <danieruru@gmail.com> | 2013-01-24 00:24:08 +0900 |
---|---|---|
committer | daniel <danieruru@gmail.com> | 2013-01-24 00:24:08 +0900 |
commit | 3d93dca40deb1c8484a865a85a548b8417b4559f (patch) | |
tree | c04cd93bada76a90bc27bbf1ec7cda21b254c24f /libvxi11client/perlbits/Client.pm | |
parent | 0aa0890888c28cff1a2f7b15e8ccda050bce08a8 (diff) |
named parameters for read()
Diffstat (limited to 'libvxi11client/perlbits/Client.pm')
-rw-r--r-- | libvxi11client/perlbits/Client.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libvxi11client/perlbits/Client.pm b/libvxi11client/perlbits/Client.pm index 204027c..cff79f5 100644 --- a/libvxi11client/perlbits/Client.pm +++ b/libvxi11client/perlbits/Client.pm @@ -54,6 +54,17 @@ sub vxi_write { return vxi_write_long($self, $args{data}, $args{len}, $args{waitlock}, $args{end}); } +sub vxi_read { + my $self = shift; + my %args = ( + bufferlen => 1024, + waitlock => 0, + termchrset => 0, + termch => 0, + @_ + ); + return vxi_read_long($self, $args{bufferlen}, $args{waitlock}, $args{termchrset},$args{termchr}); +} 1; __END__ |