Connecting to server via perl

[email protected] Sat, 08 Oct 2011 18:48:49 +0200
Newsgroups gmane.network.irc.irssi.user
Message-ID <[email protected]>
Hello list,

I want to connect to a new server via my perl-script.
After taking a look at the perl-documentation it seems that I have to
use Irssi::server_create_conn.

I tried like the documentation told me:
> server_create_conn(address[, port=6667[, password=''[, nick=''[,     >
channels='']]]])

But it doesn't work. Can someone give me an working example how to do it
correctly?