Re: Help on a socket problem

2011-02-23 Thread John W. Krahn
Ted Mittelstaedt wrote: Think of this as a chance to educate. If you were teaching a math class in elementary school and a child asked how to add 2 + 2 would you tell them to get a calculator? The NNTP protocol is very simple and this only uses a few of it's commands. The code works on older Fr

AW: Dereferencing problem

2011-02-23 Thread HACKER Nora
Hi Rob, Thank you SO much for your elaborate and clear explanations - you definitely made my day! *bounces* Kind regards, Nora > -Ursprüngliche Nachricht- > Von: Rob Dixon [mailto:rob.di...@gmx.com] > Gesendet: Mittwoch, 23. Februar 2011 21:08 > An: beginners@perl.org > Cc: HAC

Re: Help on a socket problem

2011-02-23 Thread Ted Mittelstaedt
On 2/23/2011 7:18 PM, Jim Gibson wrote: At 6:16 PM -0800 2/23/11, Ted Mittelstaedt wrote: Hi All, I'm running into a problem with a pretty old freeware perl script called "readnews" it is in an archive named "readnews-1.85.tar.gz" that is available here: http://web.archive.org/web/200806161837

Re: Help on a socket problem

2011-02-23 Thread Jim Gibson
At 6:16 PM -0800 2/23/11, Ted Mittelstaedt wrote: Hi All, I'm running into a problem with a pretty old freeware perl script called "readnews" it is in an archive named "readnews-1.85.tar.gz" that is available here: http://web.archive.org/web/20080616183736/http://www.scn.org/~bb615/scripts/read

Re: Threads and garbage collection

2011-02-23 Thread terry peng
2011/2/24 Shlomi Fish : > On Wednesday 23 Feb 2011 18:52:30 siegfr...@heintze.com wrote: >> I apologize if this appears multiple times. When I did not see it >> appear, I posted again. >> >> >> Does perl have a feature like C# and Java where memory is reclaimed and >> defragmented? >> >> >> I just

Help on a socket problem

2011-02-23 Thread Ted Mittelstaedt
Hi All, I'm running into a problem with a pretty old freeware perl script called "readnews" it is in an archive named "readnews-1.85.tar.gz" that is available here: http://web.archive.org/web/20080616183736/http://www.scn.org/~bb615/scripts/readnews-1.85.tar.gz I used these plus inn to create a

Re: Dereferencing problem

2011-02-23 Thread Rob Dixon
Hi Nora On 23/02/2011 12:53, HACKER Nora wrote: > Hi, > > I want to work with data from my database. The following select and > dereferencing for display is fine: > > my $sql = "select secondname || ' ' || firstname from supp_verantw_v"; > my $sth = $dbh->prepare($sql); > my $personen = $dbh->se

Re: Threads and garbage collection

2011-02-23 Thread Shlomi Fish
On Wednesday 23 Feb 2011 18:52:30 siegfr...@heintze.com wrote: > I apologize if this appears multiple times. When I did not see it > appear, I posted again. > > > Does perl have a feature like C# and Java where memory is reclaimed and > defragmented? > > > I just inherited 25K lines of perl cod

Re: auto login to remote server using Net::SSH::Expect

2011-02-23 Thread Parag Kalra
1. What error message do you get 2. Could you try the script with strict and warnings. 3. Could you also use die and $! 4. Did you check sshd logs on the server ~Parag On Tue, Feb 22, 2011 at 11:51 PM, Agnello George wrote: > Hi > > i am able to run a command on the remote machine but i am no

Threads and garbage collection

2011-02-23 Thread siegfried
I apologize if this appears multiple times. When I did not see it appear, I posted again. Does perl have a feature like C# and Java where memory is reclaimed and defragmented? I just inherited 25K lines of perl code that uses lots of threads. A simple grep indicates they have about 100 thread-

Re: Dereferencing problem

2011-02-23 Thread Brian Fraser
In a fairly modern Perl, you could use each[0]: while (my ($index, $value) = each @array) { ... } However, fixing your original problem is simple enough: #my @personen = @$personen; #Commenting this one out because I don't like having two variables with the same name. for ( my $i = 0; $i <= $

Re: Dereferencing problem

2011-02-23 Thread Shawn H Corey
On 11-02-23 07:53 AM, HACKER Nora wrote: my @personen = @$personen; foreach my $person ( @personen ) { print "Dereferencing: @$person\n\n"; } Use Data::Dumper to inspect your data structures: use Data::Dumper; for my $person ( @$personen ){ print "Debug: $person = ", Dumper $person; }

Dereferencing problem

2011-02-23 Thread HACKER Nora
Hi, I want to work with data from my database. The following select and dereferencing for display is fine: my $sql = "select secondname || ' ' || firstname from supp_verantw_v"; my $sth = $dbh->prepare($sql); my $personen = $dbh->selectall_arrayref($sql) or die "geht net: $!\n"; my @personen