Re: gsl/XS

2010-07-16 Thread Shlomi Fish
On Saturday 17 Jul 2010 06:32:20 Kenneth Wolcott wrote: > Hi Uri; > > Could you be a little more helpful and suggest just one of those many > places to post a more advanced question that is too advanced for this > mailing list? Perhaps perlmonks.org? > In addition to what Uri said, there's pe

Re: gsl/XS

2010-07-16 Thread Uri Guttman
> "KW" == Kenneth Wolcott writes: KW>   Could you be a little more helpful and suggest just one of those KW> many places to post a more advanced question that is too advanced KW> for this mailing list?  Perhaps perlmonks.org? you just did one. usenet, other mailing lists (lists.perl.or

Re: gsl/XS

2010-07-16 Thread Kenneth Wolcott
Hi Uri; Could you be a little more helpful and suggest just one of those many places to post a more advanced question that is too advanced for this mailing list? Perhaps perlmonks.org? Thanks, Ken Wolcott On Fri, Jul 16, 2010 at 19:17, Uri Guttman wrote: > > i have to say, segment faults, g

Re: gsl/XS

2010-07-16 Thread Uri Guttman
i have to say, segment faults, gsl and XS are not what anyone would call beginners' list topics. there are many other places you can post such problems and questions. thanx, uri -- Uri Guttman -- u...@stemsystems.com http://www.sysarch.com -- - Perl Code Review , Architec

gsl/XS

2010-07-16 Thread Patrick Dupre
Hello, Could somebody tell me what is wrong with this code (I get a segmentation fault): #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include #include typedef gsl_matrix* Math__GSL__Matrix__gsl_matrix ; #include "const-c.inc" MODULE = Test_gsl PACKAGE = Test_gsl doubl

RE: Track user login status

2010-07-16 Thread Mimi Cafe
I have decided to use CGI::Session rather than Apache::Session as the former seems to simplify the session management. For the backend (server-side) user tracking, I will program the authentication logic in combination with CGI::Session::Driver::mysql. Regards => -Original Message- => F

Re: need explanation

2010-07-16 Thread Chas. Owens
On Fri, Jul 16, 2010 at 10:18, Shawn H Corey wrote: > On 10-07-16 08:17 AM, Chas. Owens wrote: >> >> So it can get bad: >> >> my $ref = \\[1]; >> print @$$$ref, "\n"; snip > If you have something that complicated, it's going to be bad not matter how > you do it. snip Yeah, at a time like

Re: need explanation

2010-07-16 Thread Shawn H Corey
On 10-07-16 08:17 AM, Chas. Owens wrote: So it can get bad: my $ref = \\[1]; print @$$$ref, "\n"; but I fail to see how print @{${${${${${${$ref}}}, "\n"; or even worse print @{ ${ ${ ${ ${ ${ ${ $ref } } } } } } }, "\n"; makes that any better. If you have something that compl

Re: need explanation

2010-07-16 Thread Chas. Owens
On Fri, Jul 16, 2010 at 06:15, Rob Coops wrote: snip > Yes it is the same but for readability reasons is better to use the @{} > solution. Think about a complex structure you could get something like > @%$variable which looks more like you are cursing cartoon style > then writing code certainly if

Re: need explanation

2010-07-16 Thread Rob Coops
On Fri, Jul 16, 2010 at 12:06 PM, Sharan Basappa wrote: > Thanks, Vishal. > > I was confused with usage {}. So you are saying that it will > dereference the array. > Isn't @$tableRef not enough in that case? > > Regards, > Sharan > > > On Fri, Jul 16, 2010 at 3:33 PM, Vishal Gupta > wrote: > > Hi

RE: need explanation

2010-07-16 Thread Vishal Gupta
Ya Sharan, @$tableRef is also enough in this case. But as we know, there are many ways to do a single job in Perl... so we can use either ways also. Regards, Vishal > Date: Fri, 16 Jul 2010 15:36:25 +0530 > Subject: Re: need explanation > From: sharan.basa...@gmail.com > To: vishal.knit2...@ho

Re: need explanation

2010-07-16 Thread John W. Krahn
Sharan Basappa wrote: Folks, Hello, I am putting a line of code which I am not able to clearly understand. This is a reuse ... my(@table) = @{$tableRef}; The tableRef is returned as a reference after reading a file that contains record. Two questions: 1) what does @{$tableRef} really do?

Re: need explanation

2010-07-16 Thread Sharan Basappa
Thanks, Vishal. I was confused with usage {}. So you are saying that it will dereference the array. Isn't @$tableRef not enough in that case? Regards, Sharan On Fri, Jul 16, 2010 at 3:33 PM, Vishal Gupta wrote: > Hi Sharan, > > Please find below the answers: > > 1) what does @{$tableRef} reall

RE: need explanation

2010-07-16 Thread Vishal Gupta
Hi Sharan, Please find below the answers: 1) what does @{$tableRef} really do? This will de-reference the "$tableRef", which is suppose to be an array reference. 2) what does @table contain? @table will contains the original array, which is referenced by "$tableRef". Regards, Vishal

need explanation

2010-07-16 Thread Sharan Basappa
Folks, I am putting a line of code which I am not able to clearly understand. This is a reuse ... my(@table) = @{$tableRef}; The tableRef is returned as a reference after reading a file that contains record. Two questions: 1) what does @{$tableRef} really do? 2) what does @table contain? Regard

Re: checking a directory in a remote system using perl

2010-07-16 Thread C.DeRykus
On Jul 14, 7:16 am, soorajspadmanab...@gmail.com (Sooraj S) wrote: >  Hi I am very new to perl. I want to login to a remote machine and > check a directory exists or not. > > my code: > > > using Net::Telnet; > > $t = new Net::Telnet(); > $t->open($remote_system); > $t->login($username, $p