Net::Server

2006-02-18 Thread Tom Allison
I am trying to set up a server using Net::Server. Mostly this is out of curiousity more than anything else. But following the man pages I got stuck. I was trying to set up a server to connect to port 8081, but none of the configuration options I've put in below appear in the file I'm running.

Re: populating a Hash

2006-02-18 Thread Hans Meier (John Doe)
David Gilden am Samstag, 18. Februar 2006 16.29: > Good morning, Good evening here ;-) > I would like to populate a hash from a csv text file, then test for the > existence of a value in the hash. If not found return an error message and > exit. > ithe text file will have the format of: > # whit

Re: Process large file with hash

2006-02-18 Thread Hans Meier (John Doe)
Andrej Kastrin am Samstag, 18. Februar 2006 14.08: > Dear Perl users, > > I try to parse 20.000.000 records file but... To solve my recent Perl > problem I collect my previous posts on this list. > > I have bar separated file (FILE_A): > name1|10 > name2|20 > name3|5 > name4|30 > etc. > > I process

populating a Hash

2006-02-18 Thread David Gilden
Good morning, I would like to populate a hash from a csv text file, then test for the existence of a value in the hash. If not found return an error message and exit. ithe text file will have the format of: # whitelist created 2/18/06 or some other comment on the first line name1,nick1 --- nam

Re: :: and ->

2006-02-18 Thread Bob Showalter
Ken Perl wrote: what is the difference of :: and -> in this statements? $authInstance = Operation::Auth::getInstance($session,$u->authMethod,$u->userId) This is a subroutine call, passing 3 arguments. $authInstance = Operation::Auth->getInstance($session,$u->authMethod,$u->userId) This is

Process large file with hash

2006-02-18 Thread Andrej Kastrin
Dear Perl users, I try to parse 20.000.000 records file but... To solve my recent Perl problem I collect my previous posts on this list. I have bar separated file (FILE_A): name1|10 name2|20 name3|5 name4|30 etc. I processed it with the following code: my %scores; while ( ) { chomp; m

Re: print interactive debugging info into a file

2006-02-18 Thread Peter Scott
On Sat, 18 Feb 2006 16:20:10 +0800, Ken Perl wrote: > The "DB::OUT" filehandle is opened to /dev/tty, regardless of where > STDOUT may be redirected to, so it's impossible to print the > interactive debugging info into a file? > I tried 'x @session >/tmp/data' in the debugger and didn't work. Why

print interactive debugging info into a file

2006-02-18 Thread Ken Perl
The "DB::OUT" filehandle is opened to /dev/tty, regardless of where STDOUT may be redirected to, so it's impossible to print the interactive debugging info into a file? I tried 'x @session >/tmp/data' in the debugger and didn't work. -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org

Re: :: and ->

2006-02-18 Thread Ken Perl
This is really very clear. On 2/17/06, Hans Meier (John Doe) <[EMAIL PROTECTED]> wrote: > Ken Perl am Freitag, 17. Februar 2006 02.34: > > what is the difference of :: and -> in this statements? > > > > $authInstance = > > Operation::Auth::getInstance($session,$u->authMethod,$u->userId) > > > > $a