source: tags/ms_r17q3/lib/macros/toggle_color.amc

Last change on this file was 6263, checked in by westram, 14 years ago
  • removed deprecated function GB_get_error() aka get_error() from perl interface
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 353 bytes
Line 
1#!/usr/bin/perl -w
2use lib "$ENV{'ARBHOME'}/lib/";
3use ARB;
4
5$gb_main = ARB::open(":","r");
6if (! $gb_main ) {
7    $error = ARB::await_error();
8    print ("Error: $error\n");
9    exit 0;
10}
11
12$new_val = 1-BIO::remote_read_awar($gb_main,"ARB_NT","color_groups/use");
13BIO::remote_awar($gb_main,"ARB_NT","color_groups/use", $new_val);
14
15ARB::close($gb_main);
Note: See TracBrowser for help on using the repository browser.