Re: make error for Language::Prolog::Yaswi::Low

2008-05-29 Thread William
> On May 29, 2008, at 16:08, William wrote: > > > Hello, sigh...the erros seem like without end. Does it happen to you > > guys that debugging takes much much longer time than actual coding ? > > It is called yak shaving*, and, yes, constantly. > > snip > > Here I have problem of building Lang

Re: 3270 connection via perl

2008-05-29 Thread jm
On Thu, May 29, 2008 at 4:58 PM, Ken Foskey <[EMAIL PROTECTED]> wrote: > On Thu, 2008-05-29 at 15:23 -0500, jm wrote: >> does anyone have a sample script for a 3270 connection via perl? >> i've read all i can find for the x3270, x3270-script, c3270, etc. but >> i can't quite wrap my head around ho

Re: cgi ordering a table with sql

2008-05-29 Thread Gunnar Hjalmarsson
Jenda Krynicky wrote: From: "Pat Rice" <[EMAIL PROTECTED]> my $sth = $dbh->prepare('SELECT * FROM test1 ORDER BY ?'); Most databases would not let you prepare a statement like this. Most often only values may be replaced by placeholders, not column names. Hmm.. My fault, obviously. I had n

Re: cgi ordering a table with sql

2008-05-29 Thread Jenda Krynicky
From: "Pat Rice" <[EMAIL PROTECTED]> > Hi all > I'm trying to get the following working > what I want to do is to click on the link and it would order the > table, through the SQL query. > > I think the problem is that when I click on on the link to ORDER BY it > fails, that is it does not change

Re: DBI Integrated Security

2008-05-29 Thread Jenda Krynicky
From: "HESTER, CHRISTOPHER" <[EMAIL PROTECTED]> > I'm trying to connect to a MSSQL 2000 database using integrated security > and am not having any success. My understanding is that you only need to > call DBSETLSECURE before you call dblogin, as in my example below, but > it doesn't even attempt to

Re: how does file gets send to remote machine using perl

2008-05-29 Thread Ken Foskey
On Thu, 2008-05-29 at 19:46 -0400, Richard Lee wrote: > Hi, > > Someone wrote a perl script which manipulate a file and sent to number > of remote system. > I ported that exact script to my local machine but I don't see anything > going out. > Peeking into the script, I see no special module be

how does file gets send to remote machine using perl

2008-05-29 Thread Richard Lee
Hi, Someone wrote a perl script which manipulate a file and sent to number of remote system. I ported that exact script to my local machine but I don't see anything going out. Peeking into the script, I see no special module being used and no ftp/sftp/scp or anything like that being used. Do

Re: add @INC directory

2008-05-29 Thread Gunnar Hjalmarsson
William wrote: William wrote: Gunnar Hjalmarsson wrote: You should have read the Install file before installing the new version. All your questions are answered there; see in particular http://search.cpan.org/~rgarcia/perl-5.10.0/INSTALL#Coexistence_with_earlier_versions_of_perl_5 You may no

Re: make error for Language::Prolog::Yaswi::Low

2008-05-29 Thread Chas. Owens
On May 29, 2008, at 16:08, William wrote: Hello, sigh...the erros seem like without end. Does it happen to you guys that debugging takes much much longer time than actual coding ? It is called yak shaving*, and, yes, constantly. snip Here I have problem of building Language::Prolog::Yaswi a

Re: 3270 connection via perl

2008-05-29 Thread Ken Foskey
On Thu, 2008-05-29 at 15:23 -0500, jm wrote: > does anyone have a sample script for a 3270 connection via perl? > i've read all i can find for the x3270, x3270-script, c3270, etc. but > i can't quite wrap my head around how the scripting should work. i've > done telnet connections with Net::telne

make error for Language::Prolog::Yaswi::Low

2008-05-29 Thread William
Hello, sigh...the erros seem like without end. Does it happen to you guys that debugging takes much much longer time than actual coding ? Here I have problem of building Language::Prolog::Yaswi at http://search.cpan.org/~salva/Language-Prolog-Yaswi-0.14/Yaswi.pm It's an XS module. Recently, befo

3270 connection via perl

2008-05-29 Thread jm
does anyone have a sample script for a 3270 connection via perl? i've read all i can find for the x3270, x3270-script, c3270, etc. but i can't quite wrap my head around how the scripting should work. i've done telnet connections with Net::telnet so i am familiar with the basics but i can't find a

Re: add @INC directory

2008-05-29 Thread William
> William wrote: > > Gunnar Hjalmarsson wrote: > >> You should have read the Install file before installing the new > >> version. All your questions are answered there; see in particular > >> > http://search.cpan.org/~rgarcia/perl-5.10.0/INSTALL#Coexistence_with_earlier_versions_of_perl_5 > >>

Re: add @INC directory

2008-05-29 Thread Gunnar Hjalmarsson
William wrote: Gunnar Hjalmarsson wrote: You should have read the Install file before installing the new version. All your questions are answered there; see in particular http://search.cpan.org/~rgarcia/perl-5.10.0/INSTALL#Coexistence_with_earlier_versions_of_perl_5 You may now want to recomp

Re: cgi ordering a table with sql

2008-05-29 Thread Gunnar Hjalmarsson
Pat Rice wrote: Hi all I'm trying to get the following working what I want to do is to click on the link and it would order the table, through the SQL query. I think the problem is that when I click on on the link to ORDER BY it fails, that is it does not change the order of the table. It work

DBI Integrated Security

2008-05-29 Thread HESTER, CHRISTOPHER
Greetings, I'm trying to connect to a MSSQL 2000 database using integrated security and am not having any success. My understanding is that you only need to call DBSETLSECURE before you call dblogin, as in my example below, but it doesn't even attempt to be reaching the SQL server. If I uncomme

Re: Inline C

2008-05-29 Thread Chas. Owens
On Thu, May 29, 2008 at 12:53 PM, Rajnikant <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I have a static library main.a and I want to call one function of this > library from Perl code. > I have configured Inline params link (LIBS,INC etc) and my perl script > compiles fine. > > But when I call

Inline C

2008-05-29 Thread Rajnikant
Hello everyone, I have a static library main.a and I want to call one function of this library from Perl code. I have configured Inline params link (LIBS,INC etc) and my perl script compiles fine. But when I call library function from perl script, it says 'Undefined subroutine func_name'. Do yo

Re: add @INC directory

2008-05-29 Thread William
> William wrote: > > Hello, I have just upgrade my perl-5.8.8 to perl-5.10 , this new perl > > is installed at /usr/local/bin/perl I have install a lot of modules > > in the old perl directory, so I have problem of using the new perl > > version because of many uninstalled module, should reinsta

Re: regex question matching dates

2008-05-29 Thread Richard Lee
John W. Krahn wrote: } elsif ( $ARGV[0] =~ m/\b2008(0[1-9]|1[12])(0[1-9]|1[0-9]|2[0-9]|3[01])([01][0-9]|2[0-3])\b/ ) { ^ So you don't want to test for October? John fixed now. thanks!! } elsif ( $ARGV[0] =~ m/\b2008(0[1-9]|1[012])(0[1-9]|1[0-9]|2[0-9]|3[01])([01][

Re: cgi ordering a table with sql

2008-05-29 Thread Pat Rice
Hi all I'm trying to get the following working what I want to do is to click on the link and it would order the table, through the SQL query. I think the problem is that when I click on on the link to ORDER BY it fails, that is it does not change the order of the table. I wondering does anyone kno

Re: add @INC directory

2008-05-29 Thread Gunnar Hjalmarsson
William wrote: Hello, I have just upgrade my perl-5.8.8 to perl-5.10 , this new perl is installed at /usr/local/bin/perl I have install a lot of modules in the old perl directory, so I have problem of using the new perl version because of many uninstalled module, should reinstalled all the mod

Re: Curses - chgat

2008-05-29 Thread Jay Savage
On 5/28/08, Anchal Nigam <[EMAIL PROTECTED]> wrote: > Does anyone use curses and the method chgat because I am unable to > figure out how to use it. I have tried many forms of the method calls > and they all compile but none of them do anything. > > Thanks > _Nacho > > Hi Nacho, You'll be more li

RE: difference between FTP and SFTP

2008-05-29 Thread Rajnikant
Thanks Chas. You got it correct. I do want the client using SFTP to download files from server. Thanks again for ur help as I have completed that assignment :). Thanks and Best regards, ~ Rajnikant Software Engg. Persistent Sys. Ltd. Ph. +91 98222 04088 -Original Messag

Re: Parse Unix date !

2008-05-29 Thread Chas. Owens
On Thu, May 29, 2008 at 7:42 AM, AY <[EMAIL PROTECTED]> wrote: > I'm required to grab some value from table in sybase based on the > timestamp of the file generated in Unix ( solaris ). Time format in > Sybase is say ( Mar 22 2008 10:41:59:662 AM). > > I'm able to format the time stamp of the file

Re: add @INC directory

2008-05-29 Thread Chas. Owens
On Thu, May 29, 2008 at 6:51 AM, William <[EMAIL PROTECTED]> wrote: > Hello, I have just upgrade my perl-5.8.8 to perl-5.10 , this new perl is > installed at /usr/local/bin/perl > I have install a lot of modules in the old perl directory, so I have problem > of using the new perl version because

Parse Unix date !

2008-05-29 Thread AY
I'm required to grab some value from table in sybase based on the timestamp of the file generated in Unix ( solaris ). Time format in Sybase is say ( Mar 22 2008 10:41:59:662 AM). I'm able to format the time stamp of the file in this format ( Mar 22 2008 10:41:59 AM) but not the *milliseconds*. 1

Re: difference between FTP and SFTP

2008-05-29 Thread Chas. Owens
On Thu, May 29, 2008 at 1:30 AM, Rajnikant <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have question about SFTP's connection modes. FTP can use Active or Passive > mode for same. > > Is SFTP also supports such modes? snip Active vs passive has to do whether both the server and the client make

Re: No such file or directory

2008-05-29 Thread Mimi Cafe
> I am on Windows so it should not be case-sensitive. The script and all > required files in one folder. I pass 3 arguments to the script (script.pl > file1 file2 file3)and I can open the first file stored in $ARGV[0] as seen > below: > > my $ad_clients = shift @ARGV; > > open (ADFILE, "<", $ad_cli

Re: No such file or directory

2008-05-29 Thread Mimi Cafe
I am on Windows so it should not be case-sensitive. The script and all required files in one folder. I pass 2 arguments to the script and can I can open open the file in the $ARGV[0]. my $ad_clients = shift @ARGV; open (ADFILE, "<", $ad_clients) or die "Could not open $ad_clients for reading: $!

Re: No such file or directory

2008-05-29 Thread Ken Foskey
On Thu, 2008-05-29 at 11:45 +0100, Mimi Cafe wrote: > my script is in the same directory as my files, but it cannot find the file > ABC.txt in open() below. > > foreach my $supplied (@ARGV){ > # Output file name set of element currently processed. > > # Open file to read from. > open (INPUTFI

add @INC directory

2008-05-29 Thread William
Hello, I have just upgrade my perl-5.8.8 to perl-5.10 , this new perl is installed at /usr/local/bin/perl I have install a lot of modules in the old perl directory, so I have problem of using the new perl version because of many uninstalled module, should reinstalled all the modules that I need

Re: No such file or directory

2008-05-29 Thread Jeff Peng
On Thu, May 29, 2008 at 6:45 PM, Mimi Cafe <[EMAIL PROTECTED]> wrote: > my script is in the same directory as my files, but it cannot find the file > ABC.txt in open() below. > > foreach my $supplied (@ARGV){ > # Output file name set of element currently processed. > > # Open file to read from. >

No such file or directory

2008-05-29 Thread Mimi Cafe
my script is in the same directory as my files, but it cannot find the file ABC.txt in open() below. foreach my $supplied (@ARGV){ # Output file name set of element currently processed. # Open file to read from. open (INPUTFILE, "<", "$supplied") or die "Could not open $supplied: $!\n"; # Erro

Re: Need some help with XMLin

2008-05-29 Thread Jeff Peng
On Thu, May 29, 2008 at 12:02 AM, Vasant Kumar <[EMAIL PROTECTED]> wrote: > > $VAR1 = { B => { C => [ {1}, {2}. {3} ]} > > Now accessing B is no problem, but I want to access the values in C.. Hello, $VAR1->{B}->{C}->[0]; will get the first element of the anonymous array whose KEY is C. -- Jef

Need some help with XMLin

2008-05-29 Thread Vasant Kumar
Hi, I'm using PERL for the first time, and I need to parse an XML Document. Essentially we have a file that's structures like this now when I do something like $data = XMLin($XML, forcearray => ["C"]); It has something similar to $VAR1 = { B => { C => [ {1}, {2}. {3} ]} Now accessin

Re: difference between FTP and SFTP

2008-05-29 Thread Ken Foskey
On Thu, 2008-05-29 at 11:00 +0530, Rajnikant wrote: > Hi everyone, > > I have question about SFTP's connection modes. FTP can use Active or Passive > mode for same. > > Is SFTP also supports such modes? It does not need the distinction. SFTP connects via ssh on port 22 only. Ken -- To uns

Re: Can't locate feature.pm in @INC

2008-05-29 Thread William
- Original Message > From: Tomasz Finc <[EMAIL PROTECTED]> > To: William <[EMAIL PROTECTED]> > Cc: beginner perl mailling list > Sent: Thursday, May 29, 2008 14:36:58 > Subject: Re: Can't locate feature.pm in @INC > > You are trying to use a feature that is in perl-5.10 and not in your