OWPERL(3) One-Wire File System OWPERL(3)

# [NAME](#NAME)

**owperl** - perl interface for the 1-wire filesystem

# [SYNOPSIS](#SYNOPSIS)

**OW.pm**  
**use OW ;**  
**OW::init(** *interface* **);**  
**OW::init(** *initialization string* **);**

The full set of initialization options is extensive. They correspond roughly to the command line options of ,B [owfs (1)](/man/os/owfs/owfs.1) **owhttpd (1)** and [**owftpd (1)**](/man/os/owfs/owftpd.1)  
**OW::get(** *path* **);**  
**OW::put(** *path* **,** *value* **);**  
**OW::finish();**

# [DESCRIPTION](#DESCRIPTION)

See the file man3/description.3so.

## [owperl](#owperl)

[**owperl (3)**](/man/os/owfs/owperl.3) is a perl module that provides an interface to OWFS. The path to each 1-wire device is the same as [**owfs (1)**](/man/os/owfs/owfs.1) . Only the top layer has been modified to return native perl strings.

[**owperl (3)**](/man/os/owfs/owperl.3) is created by [**swig (1)**](/man/os/owfs/swig.1) (http://www.swig.org) which can be easily modified to support other programming languages.

# [FUNCTIONS](#FUNCTIONS)

## [OW::init( interface )](#OW::init%28_interface_%29)

*interface*  
Location of the 1-wire bus:

"u"

Direct connection to the 1-wire interface on the USB port -- *DS9490*

/dev/ttySx

Direct connection to a 1-wire interface on the serial port -- *DS9097U* or *DS9097*

[port | :port | IPaddress:port](#port)

Location of an *owserver* daemon that connects to the 1-wire bus. Multiple *owperl* as well as *owfs* and *owhttpd* programs can access the *owserver* process simultaneously. In fact, this will probably be the preferred mode of access to OWFS for *owperl* except in trivial applications.

# [EXAMPLE](#EXAMPLE)

perl -MOW -e "OW::init('/dev/ttyS1'); printf OW::get('´);"

# [SEE ALSO](#SEE_ALSO)

See the file man3/seealso.3so.

# [AVAILABILITY](#AVAILABILITY)

http://www.owfs.org

# [AUTHOR](#AUTHOR)

Paul Alfille (paul.alfille@gmail.com)

2004 OWFS Manpage

---

Document: owperl(3) from owfs 3.2.4-r8 (Chainguard OS)
Source: https://github.com/owfs/owfs
