Re: Stopping a Service with cgi

2006-02-16 Thread nishanth ev
Hello, I have found the right thing for starting the service using cgi. There is a software called super ftp://rpmfind.net/linux/contrib/libc6/i386/super-3.12.1-1.i386.rpm Install this and configure the same. Put relevent entries in /etc/super.tab Your script will run with full root privileges.

purpose of /? at the end of a link

2006-02-16 Thread Brent Clark
Hi all I came across a link where there was just a ? at the end of the link. e.g. http://www.gmx.net/? Is there a particular reason or purpose for this. Just something I was wondering. Kind Regards Brent Clark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

property definition

2006-02-16 Thread Kenneth Moeng
Hello there, I have a problem with property definition of this code, please have a look.   #!/usr/bin/perl -w   use DBI; use strict; use warnings;   $dsn = "dbi:mysql:db_coolcash:localhost"; my $user= "mysql"; my $password = "mysql123"; $dbh = DBI->connect($dsn,$user,$password);

Practical Unicode handling in Perl

2006-02-16 Thread Baskaran Sankaran
Hi group, Is there a source for practical Unicode handling in Perl with example programs (sort of cook book will be useful)? Man pages like perlunicode, perluniintro are fine but I feel they are far less than practical. Any pointers would be great. Thanks, Baskaran

Re: A question about CGI

2006-02-16 Thread Tom Phoenix
On 2/16/06, Tom Allison <[EMAIL PROTECTED]> wrote: > Stick it in a seperate file and read it in from there? Exactly. Your program should have the permission to read the file, but nobody else should. That may require that the program run set-id, maybe with a wrapper; see perlsec for more informati

A question about CGI

2006-02-16 Thread Tom Allison
The easy thing would be to run a CGI script that connects to a database by putting the username and password right in the script. That's a great idea as long as I never have a condition where the script does a 'dump' to the screen. I'm not a fan of 'never'... So... What are the options? Sti

Re: :: and ->

2006-02-16 Thread Chas Owens
On 2/16/06, Ken Perl <[EMAIL PROTECTED]> wrote: > what is the difference of :: and -> in this statements? > > $authInstance = > Operation::Auth::getInstance($session,$u->authMethod,$u->userId) > > $authInstance = > Operation::Auth->getInstance($session,$u->authMethod,$u->userId) > > -- > perl -e

:: and ->

2006-02-16 Thread Ken Perl
what is the difference of :: and -> in this statements? $authInstance = Operation::Auth::getInstance($session,$u->authMethod,$u->userId) $authInstance = Operation::Auth->getInstance($session,$u->authMethod,$u->userId) -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/>

Re: Hash, dbm and active perl

2006-02-16 Thread David Prévot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jay Savage a écrit : > On 2/16/06, David Prévot <[EMAIL PROTECTED]> wrote: [...] >>I have a program that works with Linux and want it to be used with W$. >>It puts a big Hash (~1,500,000 keys) in a db in order to be used by an >>other program, the sa

Re: passing subroutine/Module

2006-02-16 Thread JupiterHost.Net
Timothy Johnson wrote: OO works, but is not exactly intuitive in Perl, so you'll have to decide if it's worth the steep learning curve. Funny, I'd say the opposite. Perl's OO seems, at this point to be intuitive and easy to learn. The curve is a slightly not straight line really. I think w

RE: passing subroutine/Module

2006-02-16 Thread Timothy Johnson
If you're looking at using OO, have you read perlboot, perltoot, perltooc, and perlbot? OO works, but is not exactly intuitive in Perl, so you'll have to decide if it's worth the steep learning curve. -Original Message- From: The Ghost [mailto:[EMAIL PROTECTED] Sent: Thursday, February 1

Re: Hash, dbm and active perl

2006-02-16 Thread Jay Savage
On 2/16/06, David Prévot <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I have a program that works with Linux and want it to be used with W$. > It puts a big Hash (~1,500,000 keys) in a db in order to be used by an > other program, the same lines in each p

passing subroutine/Module

2006-02-16 Thread The Ghost
I have many HTML::Mason components that don't return content and are just used as functions (return a value). I would like to turn these into a set of subs in a module, preferably an OO module. I'm wondering what the best way to do this is. $m->comp('/path/to/component.mas', attr1 => "some

RE: Hash, dbm and active perl

2006-02-16 Thread Timothy Johnson
I don't know about tie(), but if you're looking for a DB that works on Linux and Windows, I'd suggest MySQL. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of David Prévot Sent: Thursday, February 16, 2006 9:26 AM To: beginners@perl.org Subject: Hash, dbm and active p

Re: Reading a Unicode text file

2006-02-16 Thread Tom Phoenix
On 2/16/06, Baskaran Sankaran <[EMAIL PROTECTED]> wrote: > Here is the new code: > open(F1, "<:utf8", $file1) || die("Can not find file $file1\n"); > open(F2, "<:utf8", $file2) || die("Can not find file $file2\n"); > open(O, ">:utf8", $ARGV[2]); Why no die on the third open? I believe that you c

Re: Problem with with ParseExcel and file input

2006-02-16 Thread Xavier Noria
On Feb 16, 2006, at 18:35, Mike Martin wrote: I have problems with reading in a file variable in Spreadsheet::Parsexcel. This is the relevant code. use strict; use warnings; open (INPUT,"tele1"); my @input1=; If those are filenames it would be more robust to chomp them right here: c

Re: Looking for 5.8.7 AIX 4.3.3 tar-ball

2006-02-16 Thread Leif Ericksen
Have you checked BULL??? http://www.bullfreeware.com/ I did not see it there but I did just quick look see. Tobad you are stuck on 4.3.3 that is a dead OS now. -- Leif On Thu, 2006-02-16 at 10:47 +0100, Angerstein wrote: > Hello there, > > I am looking for a perl tarball, version 5.8.7 bu

Problem with with ParseExcel and file input

2006-02-16 Thread Mike Martin
I have problems with reading in a file variable in Spreadsheet::Parsexcel. This is the relevant code. use strict; use warnings; open (INPUT,"tele1"); my @input1=; foreach my $input1 (@input1){ my @out1=split (/\./,$input1); my $ext='.tab'; my $output1= "$out1[0]$ext"; open (OUT1,">>",$output1);

Hash, dbm and active perl

2006-02-16 Thread David Prévot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a program that works with Linux and want it to be used with W$. It puts a big Hash (~1,500,000 keys) in a db in order to be used by an other program, the same lines in each program to call it: my (%tableville); dbmopen(%tableville,"tablebi

Re: regex problem

2006-02-16 Thread Jay Savage
On 2/15/06, anand kumar <[EMAIL PROTECTED]> wrote: > > > "John W. Krahn" <[EMAIL PROTECTED]> wrote:anand kumar wrote: > > Hi all, > > Hello, > > > I have the following problem in the following regex replace. > > > > $line=~s!\b($name)\b!$1!g; > > > > here this regex finds the exact matching of

RE: Reading a Unicode text file

2006-02-16 Thread Baskaran Sankaran
Here is the new code: use strict; use warnings; my $file1 = $ARGV[0]; my $file2 = $ARGV[1]; open(F1, "<:utf8", $file1) || die("Can not find file $file1\n"); open(F2, "<:utf8", $file2) || die("Can not find file $file2\n"); open(O, ">:utf8", $ARGV[2]); my $line_eng; my $line_hin; my $line_no = 1;

AW: Looking for 5.8.7 AIX 4.3.3 tar-ball

2006-02-16 Thread Angerstein
I´m forced to use the old AIX OS Version 4.3.3. -Ursprüngliche Nachricht- Von: Eko Budiharto [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. Februar 2006 10:56 An: Angerstein Betreff: Re: Looking for 5.8.7 AIX 4.3.3 tar-ball Hi anger, one of the place is in the activestate(http://www

Looking for 5.8.7 AIX 4.3.3 tar-ball

2006-02-16 Thread Angerstein
Hello there, I am looking for a perl tarball, version 5.8.7 build with threading ( 64bit not necessary ), build with gcc. If somebody knows where to get this, please replay. Bastian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]