Re: css attributes in CGI - more questions

2002-09-30 Thread Janek Schleicher
Jimmy George wrote at Sun, 29 Sep 2002 10:38:16 +0200: LIMITED SUPPORT FOR CASCADING STYLE SHEETS from perldoc CGI where is that? I am a beginner. On a Mac. With a home page serviced by a remote ISP. No Linux contact. It's a subsection in the perl documentation of the CGI module.

Looking for the Sendmail.pm for Appache ver 1.3

2002-09-30 Thread Bruce Ambraal
Hi all, Could any one send of tell where I could find this Module. thanks in advance. Bruce

Re: How to run a process in background?

2002-09-30 Thread fliptop
On Sun, 29 Sep 2002 at 16:40, Octavian Rasnita opined: OR:Can you give me some hints about how I should use the fork, to run the OR:process in background? have you read perldoc -f fork yet? if so, what part of that do you not understand? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: How to run a process in background?

2002-09-30 Thread zentara
On Sun, 29 Sep 2002 16:40:07 +0200, [EMAIL PROTECTED] (Octavian Rasnita) wrote: I want to make a script that is activated from a browser but it might take a long time to send all the messages using the Net::SMTP. So I think that it could be a good idea to make a background process to run it.

What am I missing or doing wrong?

2002-09-30 Thread Octavian Rasnita
Hi all, I've taken the following example from a Perl book but it doesn't work well. It should print the content of a web page, but it prints only the first 4 kb, then the page continues opening... and even if I press the stop button after more time, it doesn't print more than 4 kb. After

RE: What am I missing or doing wrong?

2002-09-30 Thread Kipp, James
seems to work fine for me, but i tested it on a simple web page. Try removing the line $socket-autoflush(1); -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 11:08 AM To: [EMAIL PROTECTED] Subject: What am I missing or doing

RE: What am I missing or doing wrong?

2002-09-30 Thread Kipp, James
Ok, lets troubleshoot this: Try it without the URI module and see what happens then. This trim it down to: -- use IO::Socket; my $host = 'localhost'; my $socket = new IO::Socket::INET (PeerAddr = $host, PeerPort = 80,

Re: pop-up window with database access

2002-09-30 Thread zentara
On Fri, 27 Sep 2002 14:43:50 -0400, [EMAIL PROTECTED] (Jim Lundeen) wrote: Hello, I'm creating a web site for our department at my school. We have a sign-up form for a society that people can join. I want to create a MySQL database of university names and allow the user to click on a Lookup

RE: pop-up window with database access

2002-09-30 Thread Scot Robnett
Avoid Javascript is a pretty far-reaching statement. If you want to launch a popup window, Perl isn't going to do that, Javascript is. It only takes one or two lines of client-side code. There are easy-to-follow Javascript primers at http://javascript.internet.com and

Re: Planning Implementing a web project

2002-09-30 Thread William McKee
On 28 Sep 2002 at 18:58, MMKHAJAH wrote: I have a fairly good experince with Perl. I can program under strict, do some OO and connect to databases. Up until this point I didn't do any real big script. So I wonder how to plan and implement big projects ( like web protal, discussion forum ).

Has Perl extra memory!?

2002-09-30 Thread Damien Delhomme
Hi everybody! One of my program generates a HTML formulary whose number of checkboxes fluctuates (they are named mod_0, mod_1, mod_2, mod_3...etc). Therefore I need a loop in my other program which has to read the formulary : my $count ; for ($count=0; $count = $num; $count++) {

Re: Has Perl extra memory!?

2002-09-30 Thread Robin Cragg
Sounds like a mod_perl problem. If you are using Apache::Registry apache will compile your script once and just keep running it until the child process dies. This means that any global variables you pass to it will stay in scope. How is your script being called? R At 17:45 30/09/2002 +0200,

Re: pop-up window with database access

2002-09-30 Thread zentara
On Mon, 30 Sep 2002 10:28:51 -0500, [EMAIL PROTECTED] (Scot Robnett) wrote: Avoid Javascript is a pretty far-reaching statement. If you want to launch a popup window, Perl isn't going to do that, Javascript is. It only takes one or two lines of client-side code. There are easy-to-follow

RE: pop-up window with database access

2002-09-30 Thread Scot Robnett
Define a lot of people. I use Pop-Up Stopper myself, but when there is a popup window that I *want* to see, I can CTRL-click the link. I don't have to turn Javascript off. Most browsers are preconfigured to allow Javascript and the user or the company has to explicitly turn it off. I agree that

Re: Has Perl extra memory!?

2002-09-30 Thread Damien Delhomme
The only modules I use are : use CGI; use DBI; use HTML::Template; use Data::Dumper; (I am not the original programmer, I'm trying to make it work!) My script is called by a file .xml with : !--#exec cgi=/perl/interne/annuaire/assoces_modif.pl -- Thank you for your quick answer! -

Re: pop-up window with database access

2002-09-30 Thread zentara
On Mon, 30 Sep 2002 11:47:37 -0500, [EMAIL PROTECTED] (Scot Robnett) wrote: Define a lot of people. I just did a quick google search for javascript statistics, and most of the surveys show somewhere between 10% and 15 % of people have disabled javascript. I guess it depends how important the

Re: pop-up window with database access

2002-09-30 Thread david
Jim Lundeen wrote: Hello, I'm creating a web site for our department at my school. We have a sign-up form for a society that people can join. I want to create a MySQL database of university names and allow the user to click on a Lookup button on the sign-up form when they get to the

Re: Has Perl extra memory!?

2002-09-30 Thread Janek Schleicher
Damien Delhomme wrote at Mon, 30 Sep 2002 18:48:01 +0200: The only modules I use are : use CGI; use DBI; use HTML::Template; use Data::Dumper; (I am not the original programmer, I'm trying to make it work!) My script is called by a file .xml with : !--#exec

Re: Has Perl extra memory!?

2002-09-30 Thread Damien Delhomme
My script is called by a file .xml with : !--#exec cgi=/perl/interne/annuaire/assoces_modif.pl -- I don't know much about this xml feature, but I could imagine that it works like a calling from the command line. In this context, the CGI module will (perhaps) try to read the parameters

Re: Looking for the Sendmail.pm for Appache ver 1.3

2002-09-30 Thread Wiggins d'Anconia
http://search.cpan.org/author/MIVKOVIC/Mail-Sendmail-0.78/Sendmail.pm This has absolutely nothing to do with your Apache version. http://danconia.org Bruce Ambraal wrote: Hi all, Could any one send of tell where I could find this Module. thanks in advance. Bruce -- To

Re: Realtime output to the browser

2002-09-30 Thread Janek Schleicher
Mark Schouten wrote at Fri, 27 Sep 2002 14:44:38 +0200: I'm writing some code to autmatically retrieve a file if the local file is older than a day. I would like to output some data to the browser while this script is running instead of waiting untill the script is done. Here's the

Re: problem with overlapping matches and while m//g

2002-09-30 Thread Sudarshan Raghavan
On Fri, 27 Sep 2002, nkuipers wrote: Hello, I am trying to get the positions of every instance of a given substring within a given superstring (DNA sequence), and currently have a while ( $super_string =~ m/${sub_string}/gi ) { ... } construct. I was under the impression that the

Re: Searching Storing

2002-09-30 Thread John W. Krahn
Henry Wong wrote: Henry Wong wrote: I am wondering if you guys can help me out here: I have a log file containing information like this: THU DEC 6 14:55:00 2001111222333444 FRI DEC 7 01:00:00 2001 555666777888 SAT DEC 8 13:00:00 2001xxx

Finding if a module is already 'require'd

2002-09-30 Thread Ramprasad A Padmanabhan
How do I find in a function if a particular module is already loaded for eg, sub mysub { my @vars = @_; require Data::Dumper unless ( already_required('Data::Dumper')); print Data::Dumper::Dumper(\@vars); } I want help writing the function already_required() -- To

Re: dbmopen can't open /etc/aliases.db file

2002-09-30 Thread Robin Cragg
Hi Bruno, The reason you could not open it properly is that Sendmail changed the hashing algorithm it uses some time back. Have a look at man makemap to see how Sendmail does it. PERL can read the Sendmail hash tables if you save them in the right format R At 16:22 27/09/2002 -0300, Bruno

Re: Finding if a module is already 'require'd

2002-09-30 Thread Janek Schleicher
Ramprasad A Padmanabhan wrote at Mon, 30 Sep 2002 09:36:50 +0200: How do I find in a function if a particular module is already loaded for eg, sub mysub { my @vars = @_; require Data::Dumper unless ( already_required('Data::Dumper')); print

$1, $2, $3, ... as array

2002-09-30 Thread Jenda Krynicky
Are the $n variables accessible as an array as well? Currently I am using no strict 'refs'; ... ... ${$i} ... but I don't really like that. I know I can do @array = ($string =~ /regexp/); but I need to access the matched strings in the code in

Re: $1, $2, $3, ... as array

2002-09-30 Thread Ramprasad A Padmanabhan
while($string=~/regexp/g) { push @arr , $1 } Jenda Krynicky wrote: Are the $n variables accessible as an array as well? Currently I am using no strict 'refs'; ... ... ${$i} ... but I don't really like that. I know I can do @array = ($string =~

RE: Finding if a module is already 'require'd

2002-09-30 Thread NYIMI Jose (BMB)
-Original Message- From: Janek Schleicher [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 10:05 AM To: [EMAIL PROTECTED] Subject: Re: Finding if a module is already 'require'd Ramprasad A Padmanabhan wrote at Mon, 30 Sep 2002 09:36:50 +0200: How do I find in a

Re: $1, $2, $3, ... as array

2002-09-30 Thread Jenda Krynicky
From: Ramprasad A Padmanabhan [EMAIL PROTECTED] while($string=~/regexp/g) { push @arr , $1 } I said that the code that needs access to the $n variables is inside the replacement code of s/regexp/code/ge! The regexp is fairly complex, returns many matched substrings and matches many times

pop-up window with database access

2002-09-30 Thread Jim Lundeen
Hello, I'm creating a web site for our department at my school. We have a sign-up form for a society that people can join. I want to create a MySQL database of university names and allow the user to click on a Lookup button on the sign-up form when they get to the field University Affiliation

Re: Permission Problems

2002-09-30 Thread Josh
To clarify in my earlier posting, the part where I say, I have played with chown but the fact is nobody can't chown a file that belongs to root. For grins I did: chown nobody:nobody ./fooness.cfg chmod 666 ./fooness.cfg I meant that I issued those commands from the command line. So

Re: PPM trouble !

2002-09-30 Thread John Bodoni
According to the ActiveState docs I have, the environment variables you need to set are: HTTP_proxy HTTP_proxy_user HTTP_proxy_pass For instance: HTTP_proxy=http://proxy.yourdomain.com:portnumber HTTP_proxy_user=youruserid HTTP_proxy_pass=yourpassword HTH. John Nyimi Jose [EMAIL PROTECTED]

Re: State Variables

2002-09-30 Thread Michael Kelly
On Fri, Sep 27, 2002 at 08:29:53PM -0500, Grant Hansen wrote: Can anyone provide an example of how to use a state variable to break out of a loop? Thanks I smell homework. But to be fair: what do you have so far? Why doesn't it do what you want? If you showed us your code where you were

Re: Quick ?

2002-09-30 Thread Josimar Nunes de Oliveira
It´s represent not; 0 represents FALSE; and not 0 represents TRUE; $quit = 0; while ( ! $quit ){# means while not 0, that means while not false, that means while true any statement; } Try this test: #BEGIN OF CODE $count = 10; $quit = 0; while (! $quit) {# not 0

remove duplicate lines

2002-09-30 Thread waytech
hi, i want to remove duplicate lines from one file(original file), and save the result to another file. the origianl file like this: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL

Microsoft Exchange

2002-09-30 Thread Steve
Can anyone tell me if it's possible to create a mailbox in Exchange 5.5 from perl? Thanks, Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

SQL Table Rows

2002-09-30 Thread dan
How is it possible to cycle through an SQL table row by row, without having to increment an ID by 1 in a while loop and go SELECT * FROM table WHERE id=$id ? And how can I find out how many rows are in the table? Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Postgres Select

2002-09-30 Thread Cleiton L. Siqueira
Dear friend, I don't know if I've figured out what you want, but I've written a script for you. You can test it! Warning!!! I didn't test it, ok! So. It's the following. #!/usr/bin/perl use Pg; # In DBNAME you must change to your database name. $conn =

Re: State Variables

2002-09-30 Thread Robin Cragg
Here's a simple version... $a = 5; while ($a) { foreach (1..10) { if ($_ == $a) { $exit++; } } last if ($exit); } print \$a is $a\n; R At 20:20 27/09/2002 -0700, Michael Kelly wrote: On Fri, Sep 27, 2002 at 08:29:53PM -0500, Grant Hansen wrote:

how to know weather perl script is already running?

2002-09-30 Thread Theuerkorn Johannes
Hello List, i have a perl script that i have running from a cron Job. It usually opens every 4 hours. But sometimes it takes the script longer to execute its job so after cron opens up the perl script as usual, i have two perl jobs running. Is there any possibility to check weather the script

Re: remove duplicate lines

2002-09-30 Thread Sudarshan Raghavan
On Fri, 27 Sep 2002, waytech wrote: hi, i want to remove duplicate lines from one file(original file), and save the result to another file. the origianl file like this: [EMAIL PROTECTED]

Re: how to know weather perl script is already running?

2002-09-30 Thread Robin Cragg
There are two easy ways... If your file creates a lock file when it starts and removes it when it finishes, a chec to see if the file exists will tell you if the script is already running./ On linux / unix systems do a ps and looks for any occurrances of your script name. If there are more

Re: SQL Table Rows

2002-09-30 Thread Cleiton L. Siqueira
Dear Dan, I don't know if I understood what you really want. Therefore I will try to help, ok. I use Postgres as Database. You can find out how many rows have in a table after you run a SQL like this. #!/usr/bin/perl use Pg; $db= Pg::connectdb(dbname=database); # This

Can I append @INC before use module

2002-09-30 Thread Ramprasad A Padmanabhan
Hello All, I have a perl script which has (assuming BAR.pm is in /tmp/foo/) BEGIN { push @::INC , /tmp/foo; # use BAR; # Does not work require BAR; # Works fine } Can I get to use 'use' instead of require any how Thanx Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Finding if a module is already 'require'd

2002-09-30 Thread Jenda Krynicky
From: Ramprasad A Padmanabhan [EMAIL PROTECTED] How do I find in a function if a particular module is already loaded Look at the %INC hash. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it

Re: Microsoft Exchange

2002-09-30 Thread Ramprasad A Padmanabhan
Steve wrote: Can anyone tell me if it's possible to create a mailbox in Exchange 5.5 from perl? Thanks, Steve I Dont think that will be the straightforward Why dont u use a mailer and send the mails using SMTP instead of directly creating the mailbox U could use Net::SMTP if you

re: NET::Netrc

2002-09-30 Thread William Black
Hello All, I'm trying to use the Netrc module to read from the netrc file. Anyone familiar with it? Below is the code. I'm getting an error stating Can't call method password on an undefined value at ftp.pl line 28. Here is the code. Anyone see the problem. #Get the username and passwd

Re: SQL Table Rows

2002-09-30 Thread dan
right, this is like an outline to what i want to be able to achieve.. -- my table --- row # : id , myid2 , myid3 --- row 1 : 1 , item 1 , item 2 row 2 : 2 , item 3 , item 4 row 3 : 3 , item 5 , item 6 row 4 : 4 , item 7 , item 8

Re: Postgres Select

2002-09-30 Thread Cleiton L. Siqueira
Dear friend, I don't know if I've figured out what you want, but I've written a script for you. You can test it! Warning!!! I didn't test it, ok! So. It's the following. #!/usr/bin/perl use Pg; # In DBNAME you must change to your database name. $conn =

Re: NET::Netrc

2002-09-30 Thread Ramprasad A Padmanabhan
I havent used this module but look at catching errors it could be something like this $mach = Net::Netrc-lookup('Name') || die Net::Netrc-error() Bye the way you have you created your .netrc file William Black wrote: Hello All, I'm trying to use the Netrc module to read from the

RE: Can I append @INC before use module

2002-09-30 Thread NYIMI Jose (BMB)
set PERL5LIB environment varible to /tmp/foo then you will be able to use 'use BAR;' Or give a look at 'perldoc lib' José. -Original Message- From: Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 2:53 PM To: [EMAIL PROTECTED] Subject: Can I

Can Someone Help Me?

2002-09-30 Thread Bootscat
I'm setting up a list for free and pro members. I want the pro members to be able to mail daily. I have this part working. I want the free members to only be able to mail every 4 Days to the list. Using the localtime(time) = (second,minute,hour,day-of-month,month,year,day-of-week,day-of-year)

Re: SQL Table Rows

2002-09-30 Thread Gary Stainburn
Hi Dan, I'm used to PostgreSQL, but using DBI, that shouldn't matter for what we're doing. On Monday 30 Sep 2002 1:54 pm, dan wrote: right, this is like an outline to what i want to be able to achieve.. -- my table --- row # : id , myid2 , myid3

RE: SQL Table Rows

2002-09-30 Thread Jeff AA
-Original Message- From: dan [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 13:55 To: [EMAIL PROTECTED] Subject: Re: SQL Table Rows snip __ START __ $id = 1; $sth = $dbh-prepare(SELECT * FROM table WHERE id=$id); $sth-execute; @ary = $sth-fetchrow_array; while

Re: Can Someone Help Me?

2002-09-30 Thread Frank Wiles
.--[ Bootscat wrote (2002/09/30 at 09:13:19) ]-- | | I'm setting up a list for free and pro members. | I want the pro members to be able to mail daily. I have this part working. | | I want the free members to only be able to mail every 4 Days to the list. | | Using the

RE: how to know weather perl script is already running?

2002-09-30 Thread Jeff AA
-Original Message- From: Theuerkorn Johannes [mailto:[EMAIL PROTECTED]] Sent: 30 September 2002 10:18 To: '[EMAIL PROTECTED]' Subject: how to know weather perl script is already running? Hello List, i have a perl script that i have running from a cron Job. It usually

Re: SQL Table Rows

2002-09-30 Thread Cleiton L. Siqueira
Dan, In MySQL I don't know how you can do, but I believe that in theory is the same thing. #!/usr/bin/perl use Pg; $db= Pg::connectdb(dbname=database); open (FILE, /var/log/file.log); $result = $db-exec(SELECT * FROM table;); for($i=0;$i$result-ntuples;$i++) { $id =

AW: AW: how to know weather perl script is already running?

2002-09-30 Thread Theuerkorn Johannes
Jea, thats it! Thats exactly what i had in mind! Thank you very much! This List and it´s members are excellent! Greets Johannes -Ursprüngliche Nachricht- Von: Robin Cragg [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 30. September 2002 15:10 An: Theuerkorn Johannes Betreff: Re: AW: how

Exiting loop to higher level

2002-09-30 Thread Hughes, James
Hi folks, Quick question I left my books at home. I am sure I'e seen a way to next a loop to a higher level. Let me explain.. while { if ($_ =~ /something I need to find/) { if ($_=~/something that tells me I need to look elsewhere/) {

Re: Exiting loop to higher level

2002-09-30 Thread James Edward Gray II
Drop the double. 'next' is what you're looking for. James Gray On Monday, September 30, 2002, at 09:28 AM, Hughes, James wrote: Hi folks, Quick question I left my books at home. I am sure I'e seen a way to next a loop to a higher level. Let me explain.. while {

Re: $1, $2, $3, ... as array

2002-09-30 Thread Jeff 'japhy' Pinyan
On Sep 30, Jenda Krynicky said: Are the $n variables accessible as an array as well? You can use the @- and @+ arrays (which hold offsets) to do your work: for (0 .. $#-) { # do something with substr($X, $-[$_], $+[$_] - $-[$_]) } -- Jeff japhy Pinyan [EMAIL PROTECTED]

AW: Exiting loop to higher level

2002-09-30 Thread Hughes, James
Thanks, but I need something that will take me past the first if statement... Something that itterates past the if, and tells the while to go on with the next lump of data... next will only break the inner if loop. best regards, James Hughes -Ursprungliche Nachricht- Von:

RE: Microsoft Exchange

2002-09-30 Thread Timothy Johnson
There is a new module that was just introduced called Win32::Exchange that can do that very easily. If you are using ActiveState's ActivePerl then you can get it via PPM at Dave Roth's repository. PPM set repository dave http://www.roth.net/perl/packages PPM set save PPM install win32-exchange

What Type Of Data Structure Is This?

2002-09-30 Thread Ken Hammer
A strange question. I'm using the following data structure to store information from a data base query: $tablename{$table} = { table_name= [$table], index_name= [$index_name], columns = [@column_name], type

check process state

2002-09-30 Thread Sylvanie, Jean-Pierre
Hi guys, I want to do a sub that check if a process is sleeping or not... I wrote the following sub, but I was wondering if it was possible to to it without shell calls... Thanks, jp. sub isSleeping{ # get PID of process to check my

RE: What Type Of Data Structure Is This?

2002-09-30 Thread nkuipers
$tablename{$table} = { table_name= [$table], index_name= [$index_name], columns = [@column_name], type = [$index_type], tablespace= [$tablespace_name] This works great and I can later

Re: What Type Of Data Structure Is This?

2002-09-30 Thread Robin Cragg
Hi Ken, the reason you lose your data is simple. You have something of the form: $myscalar = A weird hested hash; you then try to add an entry by doing: $myscalar = Some other data; What you look at it like that, it's clear what is going wrong. What you want is:

RE: What Type Of Data Structure Is This?

2002-09-30 Thread Timothy Johnson
What you have is a hash of hashes, the values of which is a reference to a hash of arrays. The original scalar is a reference to an anonymous hash. The value of each hash key is a reference to an anonymous array. The reason why what you tried doesn't work is that you are assigning a reference

STDIN

2002-09-30 Thread Janfek Esquivel
I have an HTML in which I have a text box and 2 combo boxes, what I want to do, is to read the information entered by text and also the informatios selected from the combo boxes (not always used) to compare it with the information on it, I already have the code to get from the database the

RE: check process state

2002-09-30 Thread Kipp, James
you could use the Proc::ProcessTable module -Original Message- From: Sylvanie, Jean-Pierre [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 11:39 AM To: '[EMAIL PROTECTED]' Subject: check process state Hi guys, I want to do a sub that check if a process is

Weekly posting statistics - 39/2002

2002-09-30 Thread Felix Geerinckx
Weekly posting statistics for perl.beginners - week 39 of 2002. From Monday 2002-09-23 to Sunday 2002-09-29 there were 483 articles posted (22798 lines) by 136 authors, giving an average 3.55 articles per author, and an average article length of 47 lpa. The average number of articles per day

another regx ...

2002-09-30 Thread Jerry Preston
Hi! I am getting no where on this and it is not that hard. I am trying to break down the following: D-2165033-10.TKB61a into D 2165033 10 and 4-2175587-08.TKB63a into 4 2175587 08 using (( $ref, $numt, $id, $ext ) = $PATH[ 7 ] ) =~ /\w-(\d{7})-(\d{2}).[\w+|\d+]/; What am I doing

RE: another regx ...

2002-09-30 Thread Mark Anderson
-Original Question- D-2165033-10.TKB61a = D 2165033 10 and 4-2175587-08.TKB63a = 4 2175587 08 using (( $ref, $numt, $id, $ext ) = $PATH[ 7 ] ) =~ /\w-(\d{7})-(\d{2}).[\w+|\d+]/; What am I doing wring? -My Response- Your parens are in the wrong place. You aren't

opening MS ACCESS via the system function

2002-09-30 Thread Cacialli, Doug
Lo, I'm attempting to write a program that will run daily, and perform the following actions: 1. Open a database in MS Access 2002, 2. Execute a program in SAS v8.02 that will, simply put, do a lot of statistical analyses and compare the current database to the backup from the night before to

Re: Searching Storing

2002-09-30 Thread david
Henry Wong wrote: Hi all, I tried using the below codes provided but i got an error saying Can't locate Date/Manip.pm in @INC...etc. I reckon that the Date::Manip do not exist in my library. Any other alternatives for my problem below? Regards, you just have to install Date::Manip.

RE: another regx ...

2002-09-30 Thread nkuipers
This idea is even simpler though not purely regex: $yourstring =~ s/\..*//; @result = split /-/, $yourstring; = Original Message From Mark Anderson [EMAIL PROTECTED] = -Original Question- D-2165033-10.TKB61a = D 2165033 10 and 4-2175587-08.TKB63a = 4 2175587 08 using

RE: opening MS ACCESS via the system function

2002-09-30 Thread Timothy Johnson
Check out the Win32::SetupSup module. You should be able to open the program via system, find the window, and send the keystrokes to it using this module. -Original Message- From: Cacialli, Doug [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 10:16 AM To: '[EMAIL

Re: Searching Storing

2002-09-30 Thread david
Henry Wong wrote: Ok, i've decided to skip using the Date::Manip coz its giving me lots of problems. Is there a way to compare dates (e.g. Thu Jun 20 12:00:00 2002) and sort them in order? What i've always wanted is to sort them, and subsequently using User's input of Start End date to

Re: system call troubles...

2002-09-30 Thread david
Jenda Krynicky wrote: Windows is one example. There you do not create a new process by forking and then changin the program your process executes, but by a CreateProcess(): (from MSDN) The CreateProcess function creates a new process and its primary thread. The new process runs the

Re: check process state

2002-09-30 Thread zentara
On Mon, 30 Sep 2002 11:38:40 -0400, [EMAIL PROTECTED] (Jean-Pierre Sylvanie) wrote: Hi guys, I want to do a sub that check if a process is sleeping or not... I wrote the following sub, but I was wondering if it was possible to to it without shell calls... My top command dosn't allow for -U or

Re: Permission Problems

2002-09-30 Thread david
Josh wrote: To clarify in my earlier posting, the part where I say, I have played with chown but the fact is nobody can't chown a file that belongs to root. For grins I did: chown nobody:nobody ./fooness.cfg chmod 666 ./fooness.cfg I meant that I issued those

Re: How to snip the end of a huge log file

2002-09-30 Thread david
Mark Richmond wrote: Hi: I have may huge log files where all I care about is the error at the end how can seek backwards to find my pattern and snip off the end. I'm looking for strings like. Rebuilding link which only occur once when reading backwards but may times

Re: Breaking out of STDIN Question

2002-09-30 Thread david
Jenda Krynicky wrote: If you want to stop input based on what the user entered on the command line then you have to read ONE line at a time and not use an array for input. BTW your loop will only read numbers and not strings because the test '== 0' will evaluate strings in a numerical

Re: SQL Table Rows

2002-09-30 Thread david
Dan wrote: How is it possible to cycle through an SQL table row by row, without having to increment an ID by 1 in a while loop and go SELECT * FROM table WHERE id=$id ? And how can I find out how many rows are in the table? Dan have you try: SELECT * FROM table; and then just cycle it

Re: Finding if a module is already 'require'd

2002-09-30 Thread david
Ramprasad A Padmanabhan wrote: How do I find in a function if a particular module is already loaded for eg, sub mysub { my @vars = @_; require Data::Dumper unless ( already_required('Data::Dumper')); print Data::Dumper::Dumper(\@vars); } I want help writing the function

Re: how to know weather perl script is already running?

2002-09-30 Thread david
Theuerkorn Johannes wrote: Hello List, i have a perl script that i have running from a cron Job. It usually opens every 4 hours. But sometimes it takes the script longer to execute its job so after cron opens up the perl script as usual, i have two perl jobs running. Is there any

Re: Can I append @INC before use module

2002-09-30 Thread david
Ramprasad A Padmanabhan wrote: Hello All, I have a perl script which has (assuming BAR.pm is in /tmp/foo/) BEGIN { push @::INC , /tmp/foo; # use BAR; # Does not work require BAR; # Works fine } Can I get to use 'use' instead of require any how Thanx Ram

Re: pop-up window with database access

2002-09-30 Thread david
Jim Lundeen wrote: Hello, I'm creating a web site for our department at my school. We have a sign-up form for a society that people can join. I want to create a MySQL database of university names and allow the user to click on a Lookup button on the sign-up form when they get to the

Re: check process state

2002-09-30 Thread david
Jean-Pierre Sylvanie wrote: Hi guys, I want to do a sub that check if a process is sleeping or not... I wrote the following sub, but I was wondering if it was possible to to it without shell calls... Thanks, jp. sub

Re: STDIN

2002-09-30 Thread david
Janfek Esquivel wrote: I have an HTML in which I have a text box and 2 combo boxes, what I want to do, is to read the information entered by text and also the informatios selected from the combo boxes (not always used) to compare it with the information on it, I already have the code to get

Re: check process state

2002-09-30 Thread david
Zentara wrote: My top command dosn't allow for -U or $user. Maybe you meant to use ps ? the -U argument only exist for a certain version of top Top version 3.4 has it in my UNIX machine in my Linux box: [david@panda]$ top -V top (procps version 2.0.7) doesn't have it. david -- To

Re: $1, $2, $3, ... as array

2002-09-30 Thread Jenda Krynicky
From: david [EMAIL PROTECTED] Jenda Krynicky wrote: Are the $n variables accessible as an array as well? Currently I am using no strict 'refs'; ... ... ${$i} ... but I don't really like that. I know I can do @array = ($string =~ /regexp/); but I need to

Re: Can I append @INC before use module

2002-09-30 Thread Paul Johnson
On Mon, Sep 30, 2002 at 11:25:32AM -0700, david wrote: what sort of error message do you get? assume i have: /home/david/perl/A.pm, the following works for me: BEGIN{ push @INC, '/home/david/perl'; use A; } Are you sure? Remember that . is in @INC by default. In

CGI Script and getting the PID

2002-09-30 Thread Jessee Parker
Hi all, I've run into a bit of a problem. I need to see if a program is currently running. If it is, I want to display this on a web page that tells the status of the program (either on or off). The script I created which is probably longer than it needs to be, basically issues a system(ps -A)

RE: Or Syntax

2002-09-30 Thread Lance Prais
When I read about this Module it really was not clear about using it with strings. I tried it with the following code and it is causing so many problems. If anyone has any Ideas it would be appreciated, I have been pounding my head with this for a while now. if ($partition

Reading mail headers from mqueue

2002-09-30 Thread Scot
Hi; Looking to read in mail headers from /var/spool/mqueue/ and load them into an array or hash to filter based on some rules. I know there must be a good module out there to do this. I just want To,From,CC and Subject. given you have a file with the headers in $_ anybody out there

RE: What Type Of Data Structure Is This (Summary)

2002-09-30 Thread Ken Hammer
The structure is a hash of hashes. Thanks to: nkuipers [EMAIL PROTECTED] Robin Cragg [EMAIL PROTECTED] Timothy Johnson [EMAIL PROTECTED] who correctly pointed this also to me. They also provided some information on how to add items to the array, and an easier way to populate the

RE: Or Syntax

2002-09-30 Thread Lance Prais
David, Thank you for your help but I think I am not explaining myself correctly. I am writing to four separate .txt files file where the array [2] is assigned to the variable $partition If $partition eq Public only write to a file called $public_text If $partition eq Public or $partition

Printing A Hash of Hashes

2002-09-30 Thread Ken Hammer
From a previous post I needed to identify a particular data structure. It is a hash of hashes. Now, I need to print the hash out. I'm using the code from the Programing Perl 3rd edition from O'Reilly on how to print out the hash and of course I'm having a problem. This is from Chapter 9,

  1   2   >