---
name: "SigC"
section: "3pm"
platform: "linux"
package: "libsigc-perl"
version: "0.07-4+b1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/SigC"
---

# SigC(3pm)

SigC - Perl extension which wraps the libsigc++ signal library

```
  use SigC;
  $foo = sub {return shift;};
  $signal = new SigC::Signal();
  $connection = $signal->connect($foo);
  $signal->emit(1, 2); # calls $foo, returns a list containing 1
  disconnect $connection;
  $signal->emit(3, 4, 5);  # doesn't call $foo, returns an empty list
```

While this module can be used alone to provide signals, its primary use is to make it easier to write modules around C++ code that uses libsigc++. The signals provided by these other modules may have restrictions on the kinds of values they may be called with or return.\
 **EXPORT** None by default. Ron Steinke, \<rsteinke@w-link.net\> perl. Copyright 2002, Ron Steinke.  All Rights Reserved. This program is free software.  You may copy or redistribute it under the same terms as Perl itself.
