Re: Perl Modules

2008-04-17 Thread Monty
I see that there are instructions for installing the module on the CPAN website. Sorry to have bothered anyone. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Perl Modules

2008-04-16 Thread Monty
Hope this is the right forum for this. I recently downloaded Curses-1.23.tar from CPAN for installation on to my Solaris 8 system. I installed the module in the same area as all my other perl modules: /usr/local/lib/perl5/5.8.5, but I noticed there's also a directory named /usr/local/lib/perl5/si

Re: The role of listen()

2007-07-19 Thread Monty
That's the book I got the code snippet from. I hadn't found (yet) the explanation I'm looking for, but some testing has shown me that's what's happening. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

The role of listen()

2007-07-18 Thread Monty
In studying network programming (and I'm just beginning at it), I see where listen() is called to set up a socket that waits for incoming connection requests. The next step appears to be a call to accept() where the request is granted and the connection made on a new socket, as in this code snippe

Re: Another snippet explanation, please

2007-07-06 Thread Monty
Aaah...that does make more sense. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Another snippet explanation, please

2007-07-06 Thread Monty
I've come across the following bit of code: print PIPE "This is line number $_\n" and $count++; How does this differ from: print PIPE "This is line number $_\n"; $count++; Thanks! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.per

Re: Snippet explanation please

2007-07-05 Thread Monty
Thanks for all the replies, both in this group and in separate e- mails. Things have been cleared up. My major misunderstanding was in the fact that $1, $2, etc. can exist outside the RegEx. I previously thought they had to be confined to the expression itself. Through some experimenting I find

Snippet explanation please

2007-07-05 Thread Monty
I'm reading "Network Programming with Perl" by Lincoln Stein, and I've come across a snippet of code I'mnot quite following: open (WHOFH, "who |") or die "Can't open who: $!"; While () { next unless /^(\S+)/; $who{$1}++; } It's the 'next' line I'm unclear on. I know that results: parse