Parl-Packer installation urgent help required

2008-08-20 Thread sanket vaidya
Hi all, When I run makefile .pl while installing Parl::Packer 0.982. I get this message. Fetching 'PAR-Packer-0.982-MSWin32-x86-multi-thread-5.10.0.par' from www.cpan.org... Fetching failed: No compiler found, won't generate 'script/parl.exe'! ... So I downloaded 'PAR-Packer-0.982

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
Please find the answers of your questions/ confusions that you raised, as embedded below     --- On Thu, 8/21/08, Perry Smith <[EMAIL PROTECTED]> wrote: From: Perry Smith <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL PROTECTED] Cc: "Mr. Shawn H. Corey" <[EMAIL P

Re: timing a fork

2008-08-20 Thread Raymond Wan
Hi John, Thank you very much for your reply! I've actually been stuck on this for a while...but with little knowledge about forking processes, I was a quite stuck. John W. Krahn wrote: perldoc -f times Ah, didn't know about that. I thought to get user time, you had to run something (s

Re: Text search engine [OT]

2008-08-20 Thread Raymond Wan
Hi Dermot, Off-topic, so I hope no one minds if I reply. Perl is good at manipulating text strings, but that doesn't usually help search engine implementations. A search engine (or information retrieval system) has to be fast and after it has tokenized the document collection or query, you'

Re: What is wrong with this script ??

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 17:25 -0500, Perry Smith wrote: > I would first verify that you can do what you need to do with one > individual directory from the shell. i.e. make sure you can chown, > chgrp, and chmod -- what ever other commands you are needing to do. On many *NIX systems, commands like

Re: inserting unique records in an SQLite DB

2008-08-20 Thread Rob Dixon
Octavian Rasnita wrote: > > I have an SQLite database that has a field with a unique constraint and I > want to be able to insert records as fast as possible. > > The program works fine if I use > > insert or ignore into table_name... > > but the problem is that the primary key field which has

inserting unique records in an SQLite DB

2008-08-20 Thread Octavian Rasnita
Hi, I have an SQLite database that has a field with a unique constraint and I want to be able to insert records as fast as possible. The program works fine if I use insert or ignore into table_name... but the problem is that the primary key field which has autoincrement option skips the ID

Re: Text search engine

2008-08-20 Thread Rob Dixon
Dermot wrote: > > This is a slighty OT query. > > I am looking for a text search engine that has a Perl interface. I > have found a few, Lucene, OpenFTS and Swish-E. OpenFTS hasn't had a > release of the last 3 years. That makes me nervous about using it. > Lucene is java based. I have zero java

Re: What is wrong with this script ??

2008-08-20 Thread Rob Dixon
Jyotishmaan Ray wrote: > > All the users have been created through LIDF files format being imported to > the central LDAP server in the setup. The hopme directories are being created > for the students to work on their asignements etc. > > The why the ownsership are not shown or changed by the c

Text search engine

2008-08-20 Thread Dermot
Hi, This is a slighty OT query. I am looking for a text search engine that has a Perl interface. I have found a few, Lucene, OpenFTS and Swish-E. OpenFTS hasn't had a release of the last 3 years. That makes me nervous about using it. Lucene is java based. I have zero java experience but there is

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
All the users have been created through LIDF files format being imported to the central LDAP server in the setup. The hopme directories are being created for the students to work on their asignements etc. The why the ownsership are not shown or changed by the commnds given in the script ? Wh

Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Jyotishmaan Ray
created a user by importing a ldif as shown  below: Plz go through this  file. However this file  is located at the LDAP server and the homedirectories are to created in the cluster server. dn: uid=s08-1-5-097,ou=student,dc=nits,dc=ac,dc=in uid: s08-1-5-097 cn:  s08-1-5-097 objectClass: account

RE: How to convert UTF-8 to XML entities?

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 08:28 -0700, siegfried wrote: > Silly me! I should have anticipated the need to go back again! Can anyone > give me a little script to search for XML entities and convert them to my > choice of utf-8, utf-16 or utf-32? The same thing only backward: s/\&\#(\d+)\;/chr($1)/ge

RE: How to convert UTF-8 to XML entities?

2008-08-20 Thread siegfried
Silly me! I should have anticipated the need to go back again! Can anyone give me a little script to search for XML entities and convert them to my choice of utf-8, utf-16 or utf-32? Thanks! Siegfried >> Does anyone have some perl (or emacs lisp) code that will convert the UTF-8 chinese text in my

Re: Repeating the array

2008-08-20 Thread Jeff Pang
On Wed, Aug 20, 2008 at 1:54 PM, Arun <[EMAIL PROTECTED]> wrote: > Hi, >I just wanted small help here, i want to repeat an array for every > 30 seconds. > lets us keep i want to send an array for every 30 seconds and also > should be able to quit as per the user. Hi, You have described the thi

RE: doubt

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 19:42 +0530, Irfan J Sayed (isayed) wrote: > Thank you very much. Really helped. > Regards > Irfan. You can look up: perldoc -f shift pelrdoc perlvar (and search for "@ARGV') -- Just my 0.0002 million dollars worth, Shawn "Where there's duct tape, there's hope."

RE: doubt

2008-08-20 Thread Irfan J Sayed (isayed)
Thank you very much. Really helped. Regards Irfan. -Original Message- From: Mr. Shawn H. Corey [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 7:35 PM To: Irfan J Sayed (isayed) Cc: beginners@perl.org Subject: Re: doubt On Wed, 2008-08-20 at 19:03 +0530, Irfan J Sayed (isaye

Re: doubt

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 19:03 +0530, Irfan J Sayed (isayed) wrote: > Hi All, > > Can you please tell me what is the value of $file. When i execute this > script . it says "Can't open : No such file or directory" > > Please suggect. > > Regards > > Irf. > > #!/usr/bin/perl > > # file: count_line

RE: doubt

2008-08-20 Thread Irfan J Sayed (isayed)
Do I need to really give the full pathname of the file and store in the $file. What does this line means my $file = shift; Regards Irf. -Original Message- From: Andrew Curry [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 7:06 PM To: Irfan J Sayed (isayed); beginners@perl.org

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
Hello, I created a user by importing a ldif as showb below: Plz go through this  file. However this file  is located at the LDAP server and the homedirectories are to created in the cluster server.dn: uid=s08-1-5-097,ou=student,dc=nits,dc=ac,dc=in uid: s08-1-5-097 cn:  s08-1-5-097 objectClass:

RE: doubt

2008-08-20 Thread Andrew Curry
Im going with empty string or null. -Original Message- From: Irfan J Sayed (isayed) [mailto:[EMAIL PROTECTED] Sent: 20 August 2008 14:34 To: beginners@perl.org Subject: doubt Hi All, Can you please tell me what is the value of $file. When i execute this script . it says "Can't open : N

doubt

2008-08-20 Thread Irfan J Sayed (isayed)
Hi All, Can you please tell me what is the value of $file. When i execute this script . it says "Can't open : No such file or directory" Please suggect. Regards Irf. #!/usr/bin/perl # file: count_lines.pl # Figure 1.4: Count the lines of a file use strict; use IO::File; my $file = shift;

Re: What is wrong with this script ??

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 06:11 -0700, Jyotishmaan Ray wrote: > Yes, a user uid has already been created in aLDAP server which does > centralised authentication. > > And these home directories were created on a clusetr server machine for > students to work out theur assignments etc. Then you have

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
Yes, a user uid has already been created in aLDAP server which does  centralised authentication. And these home directories were created on a clusetr server machine for students to work out theur assignments etc.     --- On Wed, 8/20/08, Perry Smith <[EMAIL PROTECTED]> wrote: From: Perry Smith

Re: What is wrong with this script ??

2008-08-20 Thread Perry Smith
On Aug 20, 2008, at 7:20 AM, Mr. Shawn H. Corey wrote: On Wed, 2008-08-20 at 05:16 -0700, Jyotishmaan Ray wrote: Dear All, I have a input file containing all the rolnos of 400 studenst. I have written a small perl script to create their home directories in the cluster server. everything

Re: What is wrong with this script ??

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 05:16 -0700, Jyotishmaan Ray wrote: > Dear All, > > I have a input file containing all the rolnos of 400 studenst. I have written > a small perl script to create their home directories in the cluster server. > > everything worked fine except for the reason that, it shows u

RE: What is wrong with this script ??

2008-08-20 Thread Andrew Curry
Depending on your server the error could be that the group doesn't exist i.e. on unix you would need to add the groups to /etc/group first. -Original Message- From: Jyotishmaan Ray [mailto:[EMAIL PROTECTED] Sent: 20 August 2008 13:17 To: beginners@perl.org Subject: What is wrong with th

What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
Dear All, I have a input file containing all the rolnos of 400 studenst. I have written a small perl script to create their home directories in the cluster server. everything worked fine except for the reason that, it shows up error message indicating that the following messages for example:

Repeating the array

2008-08-20 Thread Arun
Hi, I just wanted small help here, i want to repeat an array for every 30 seconds. lets us keep i want to send an array for every 30 seconds and also should be able to quit as per the user. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:/

Re: timing a fork

2008-08-20 Thread John W. Krahn
Raymond Wan wrote: Hi all, Hello, I'm trying to fork a process under modperl for a web server, but I've realized that the problem / misunderstanding that I'm having is unrelated to modperl...I get the same problem under Perl. What I want to do is to fork a child process (non-perl program