newbie syntax question -> and =>
- From: ToddAndMargo@xxxxxxxx
- Date: 1 Oct 2006 22:31:24 -0700
Hi All,
I am a bit new (okay A LOT NEW) to Perl. My
background is mostly Modula2 and Bash script.
Looking over an example, I notices "->" and "=>"
being used. For example:
my($sock) = IO::Socket::INET->new(PeerAddr => $host,
PeerPort => 'exec(512)', Proto => 'tcp');
and
$sock->syswrite("0\0", 2);
$sock->syswrite($user . "\0", length($user) + 1);
What are they doing and what is are their rules?
Many thanks,
-T
.
- Follow-Ups:
- Re: newbie syntax question -> and =>
- From: usenet
- Re: newbie syntax question -> and =>
- Prev by Date: Does Perl have a wait command?
- Next by Date: Re: Does Perl have a wait command?
- Previous by thread: Does Perl have a wait command?
- Next by thread: Re: newbie syntax question -> and =>
- Index(es):
Relevant Pages
|
|