call a windows application (.exe) via perl

2002-01-05 Thread mb
Hi, I asking if there is any module to make some directives like : runing a window appli, waiting it finish and get the result of runing. Thanks , asma

delete one column in table

2002-01-05 Thread nafiseh saberi
hi dear team... how can i delete only one column in one table with sql in postgres ?? thx. Sincerely yours Nafiseh Saberi People will forget what you said ... People will forget what you did... But people will Never Forget how you made them feel. < An

dbfuncs.pm

2002-01-05 Thread ravi
has any body used dbfuncs wrapper for dbi i have perl 5.6.1 , mysql 3.20 and dbi and dbfuncs installed i could connect to mysql using dbi directly but dbfuncs i troubling me... with the below erro Mysql::DESTROY: Not defined in Mysql and not autoloadable (last try destroy) at /usr/local/lib/perl

RE: CGI perl html urgent

2002-01-05 Thread Robert Howard
I have a question, real quick. Why use the

USE IMPORT REQUIRE

2002-01-05 Thread nafiseh saberi
hi dear team. what is the difference between "use" , "import" , "require". use HTML::Template; import HTML::Template; require HTML ::Template; thx. ___ Sincerely yours Nafiseh Saberi People will forget what you said ... People will forget what you did... B

Re: grabbing leading spaces from line

2002-01-05 Thread Prahlad Vaidyanathan
Hi, On Fri, 04 Jan 2002 Jeff 'japhy' Pinyan spewed into the ether: > On Jan 4, Prahlad Vaidyanathan said: > > >I tried this : > > > >my $text = " this is a test" ; > > > ># Test 1 > >my $leading_spaces = ($text =~ m/^(\s+)/) ; # This doesn't work > >print $leading_spaces ;

Re: grabbing leading spaces from line

2002-01-05 Thread Jeff 'japhy' Pinyan
On Jan 5, Prahlad Vaidyanathan said: >> >my $leading_spaces = ($text =~ m/^(\s+)/) ; # This doesn't work >> >print $leading_spaces ; # Prints 1 >> >> You have executed the regex in scalar context. Why? Because the > >Does this mean the return value of the match is put into

Re: delete one column in table

2002-01-05 Thread Dave K
For most rdbms you would use ALTER TABLE, for postgresql you can't. Lets say you originally created CREATE TABLE example ( col1 varchar, col2 varchar, colthree numeric); then realized colthree was in the wrong table. you can: CREATE TABLE temp AS SELECT col1,col2 FROM example; DROP TABLE EXAMPLE;

Re: USE IMPORT REQUIRE

2002-01-05 Thread Jeff 'japhy' Pinyan
On Jan 5, nafiseh saberi said: >what is the difference between >"use" , "import" , "require". The code: use Module qw( this $that ); is the same as: # BEGIN { } happens at compile-time BEGIN { require Module; Module->import(qw( this $that )); } Read 'perldoc -q require' for

Re: CGI perl html urgent

2002-01-05 Thread mb
-Message d'origine- De : Robert Howard <[EMAIL PROTECTED]> À : [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date : samedi 5 janvier 2002 13:38 Objet : RE: CGI perl html urgent >I have a question, real quick. Why use the

Re: Write Question.

2002-01-05 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I am new to Perl, So pardon my ignorance. } > > I am using Active Perl 5.6.1 on NT4.0: > > I am trying to write the variable $xpn into a file called report. > > Am I doing it right? > > Here is the part of the code: > >

Re: Resume after die?

2002-01-05 Thread Jenda Krynicky
"Richard J. Barbalace" <[EMAIL PROTECTED]> wrote: > Jenda writes: > > Well ... what about just ... making the eval{} block smaller? > > > > eval { > ># Code where an error may occur > >exception_causing_method(); > > }; > > if ($@) { ... } > > # Code where I want t

Re: call a windows application (.exe) via perl

2002-01-05 Thread K Old
I would assume you could just use either a system() or exec() call. Check the documentation on perldoc.com. One of them will wait until whatever program is running finishes and the return you to your perl program. Hope this helps, Kevin On Saturday 05 January 2002 04:42 am, mb wrote: > Hi,

A couple of questions!

2002-01-05 Thread Marvin Bonilla
Hello I am really new programing perl scripts so, I read this list and I realized that you know a lot about this stuff, well I want to make a report where the final information we want to have depend of the hour it was saved. The log file is lineal and its look like this: Thu Nov 1 00:00:01 200

RE: delete one column in table

2002-01-05 Thread McCollum, Frank
if you cannot ALTER TABLE, I find it quicker to do it as below (using Dave's example...): SELECT col1,col2 into tempTable from exampleTable This leaves off col3 data and retains formatting information for other columns, then you can do this: DROP exampleTable SELECT * into exampleTable from tem

Re: A couple of questions!

2002-01-05 Thread Bud Rogers
Marvin Bonilla wrote: > The first line has the hour that this report was origined, the > information that I need is the line where appears "Acct-Session-Time = > 5275" but just from the 08:00 to 19:00, and them sum the numerical > value. > > I can get the hour (with while and split functions) bu

capturing output of an other program

2002-01-05 Thread Pozsar Balazs
Hi all, under shell i can capture the the output of a child process with this for eg: # dpkg --status-fd 3 --remove xxx 3>&1 2>/dev/null >/dev/null [output of dpkg on fd 3...] Okay, I could still use open here, but I would also want to capture the standard output (stdout&stderr) of the child pr

not perl, but need some help with Linux...

2002-01-05 Thread McCollum, Frank
Does anyone know where to get help if you destroy a computer while installing Linux...? Problem (of course this comes up after formatting c: drive and using a boot disk) 1. Linux autoboot.bat program detects windows running and will not install (of course windows is not running, though) 2. Window

Crypt function explanation

2002-01-05 Thread documents
Hi, below is a piece of code from the perl man pages. My question deals with: crypt PLAINTEXT, SALT Can someone please explain what the SALT is used for, HOW should it be set, that is, how many characters long it should be etc. There is little explanation besides the example in the manual, as w

RE: CGI perl html urgent

2002-01-05 Thread Alan C.
Subject: RE: CGI perl html urgent Hi, Different? -- I think of it as a way when i need larger amounts of text or html tags or larger amounts of whatever. But perhaps all it is is part of Perl's characteristic of "there's more than one way to do it" (tmtowtdi) I think it's called a here doc

Re: Crypt function explanation

2002-01-05 Thread smoot
> [EMAIL PROTECTED] said: > Hi, below is a piece of code from the perl man pages. > > My question deals with: crypt PLAINTEXT, SALT > > Can someone please explain what the SALT is used for, HOW should it be set, > that is, > how many characters long it should be etc. SALT is used to vary the h

What is the meaning of this regexes .*? (was Re: regex)

2002-01-05 Thread Leon
- Original Message - From: "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 9:53 PM Subject: Re: regex > If so, I suggest something like: > $text =~ s/.*?//gs; * means zero or more instances; ? means zero or one instances; + means one or more instances; so wh

Re: lexically scoped variables [was: use strict... and my auto-increment don't increase]

2002-01-05 Thread Leon
- Original Message - From: "Michael R. Wolf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> > >"Leon" <[EMAIL PROTECTED]> writes: > > But my instinct tells me that what you were > > trying to say is that with each iteration, the variable my > > $b++ was resetted, hence no increment (remains

Reference problem

2002-01-05 Thread Robert Thompson
Hello list, I am attempting to use some references for variable names in some loops, and am having problems. Below is some test code for what I am attempting to accomplish. #!/usr/bin/perl @one_list = qw(1 2 3 4); @two_list = qw(5 6 7 8); @three_list = qw(9 10 11 12); @four_list = qw(1

Re: What is the meaning of this regexes .*? (was Re: regex)

2002-01-05 Thread Bkwyrm
Le Sat, Jan 05, 2002 at 08:51:19AM +0800, Leon a dit le suivant: } } > If so, I suggest something like: } > $text =~ s/.*?//gs; } } * means zero or more instances; } ? means zero or one instances; } + means one or more instances; } } so what is the meaning of .*? .. matches any type of input

Re: Crypt function explanation

2002-01-05 Thread Jeff 'japhy' Pinyan
On Jan 5, [EMAIL PROTECTED] said: >Can someone please explain what the SALT is used for, HOW should it be set, >that is, >how many characters long it should be etc. > >There is little explanation besides the example in the manual, as well as >on the camel book. The documentation points you to cr