how to set env variables?

2004-05-10 Thread Reynard Hilman
Hi, I have a perl script that runs just fine from command line but not when I run it as cgi. I think it's because there are some env variables that doesn't exist when I run it as cgi. Is there a way to set the variables from the perl script? I tried $ENV{'VAR'} = 'value'; but it doesn't make a

RE: how to set env variables?

2004-05-10 Thread Charles K. Clarkson
Reynard Hilman [EMAIL PROTECTED] wrote: : : I have a perl script that runs just fine from command : line but not when I run it as cgi. I think it's because : there are some env variables that doesn't exist when I : run it as cgi. Is there a way to set the variables from : the perl script? : I

perl.beginners.cgi Weekly list FAQ posting

2004-05-10 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email

Reading a Java applet

2004-05-10 Thread Octavian Rasnita
Hi all, Does anyone know if a perl program could be made to read the content of a Java applet? I have made a script that should read such an applet, get the text from it and print it on the browser. Thank you. Teddy -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: installing DBI on HPUX

2004-05-10 Thread NYIMI Jose (BMB)
-Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 2:51 PM To: NYIMI Jose (BMB) Cc: [EMAIL PROTECTED] Subject: Re: installing DBI on HPUX You either need the HP ANSI C compiler or GCC. Since you seem to use a perl which was

re: Opening with a pipe

2004-05-10 Thread William Black
Hello I have the following driver script that calls two perl scripts to run them asyn. The driver calls the open command for both scripts but the pgm just hangs and never finishes. Does anyone know why? Driver: open (DAL,C:\temp7\backup\temp1.pl); open (DAL,C:\temp7\backup\temp2.pl); while

re: Piped input

2004-05-10 Thread William Black
Hello I have the following driver script that calls two perl scripts to run them asyn. The driver calls the open command for both scripts but the pgm just hangs and never finishes. Does anyone know why? Driver: open (DAL,|C:\temp7\backup\temp1.pl); open (DAL,|C:\temp7\backup\temp2.pl); while

RE: Piped input

2004-05-10 Thread NandKishore.Sagi
The file handlers are both DAL. Change the file handler names. -Original Message- From: William Black [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 8:50 AM To: [EMAIL PROTECTED] Subject: re: Piped input Hello I have the following driver script that calls two perl scripts to

Re: File Monitoring

2004-05-10 Thread JupiterHost.Net
PerlDiscuss - Perl Newsgroups and mailing lists wrote: Hi there, Hello, Can anyone recommend a good way to have a perl script that constantly monitors for the creation of new files on UNIX and launches another process? Not sure if someone else recommended this but: [untested code - for

Re: installing DBI on HPUX

2004-05-10 Thread Peter Scott
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Christian Stalp) writes: Hello, I allready installed gcc but the Makefile calls the HPUX-cc compiler. (CC = cc ) How can I tell the system to use the gcc instead of the cc? perl Makefile.PL CC=/usr/local/bin/gcc -- Peter Scott

Re: File Monitoring

2004-05-10 Thread Wiggins d Anconia
Hi there, Can anyone recommend a good way to have a perl script that constantly monitors for the creation of new files on UNIX and launches another process? Thanks! Cheers, Ben Lee's method would be the sufficient underkill way. I have an application that does this type of thing

Re: File Monitoring

2004-05-10 Thread Dani Pardo
Hi, I've done this app. What I do is put into a file the output of ls -lR /directory_to_watch. Then use diff to compare the results. This gives the advantage that, if a line starts with +, then a new file has been added. If it's -, a file has been deleted :) $ ls -lR listing1.txt $ ls

RE: installing DBI on HPUX

2004-05-10 Thread NYIMI Jose (BMB)
-Original Message- From: Peter Scott [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 3:31 PM To: [EMAIL PROTECTED] Subject: Re: installing DBI on HPUX In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Christian Stalp) writes: Hello, I allready installed gcc but the

RE: File Monitoring

2004-05-10 Thread NYIMI Jose (BMB)
-Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 4:36 PM To: PerlDiscuss - Perl Newsgroups and mailing lists; [EMAIL PROTECTED] Subject: Re: File Monitoring [snip] There is a directory watching component in POE Where to find doc

perl.beginners Weekly list FAQ posting

2004-05-10 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

RE: File Monitoring

2004-05-10 Thread Wiggins d Anconia
-Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 4:36 PM To: PerlDiscuss - Perl Newsgroups and mailing lists; [EMAIL PROTECTED] Subject: Re: File Monitoring [snip] There is a directory watching component in POE Where

RE: File Monitoring

2004-05-10 Thread NYIMI Jose (BMB)
-Original Message- From: Dani Pardo [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 4:25 PM To: [EMAIL PROTECTED] Subject: Re: File Monitoring Hi, I've done this app. What I do is put into a file the output of ls -lR /directory_to_watch. Then use diff to compare

Piping output mutt perl

2004-05-10 Thread Paul D. Kraus
I have a perl script that parses an email. I use mutt and then just use the pipe command. I would like to be able to pipe the output of my script then to mutt to send the parsed email to someone else. I can do this in mutt but just hitting the pipe char then typeing the name of my script then |

Re: Piping output mutt perl

2004-05-10 Thread Paul D. Kraus
On Mon, May 10, 2004 at 12:23:44PM -0400, Paul D. Kraus wrote: I have a perl script that parses an email. I use mutt and then just use the pipe command. I would like to be able to pipe the output of my script then to mutt to send the parsed email to someone else. I can do this in mutt but

RE: File Monitoring

2004-05-10 Thread NYIMI Jose (BMB)
-Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 6:02 PM To: NYIMI Jose (BMB); PerlDiscuss - Perl Newsgroups and mailing lists; [EMAIL PROTECTED] Subject: RE: File Monitoring -Original Message- From: Wiggins d

Re: File Monitoring

2004-05-10 Thread Dani Pardo
NYIMI Jose (BMB) wrote: Is this a joke ? :-) Here's a typical diff output: 17,18d16 (who writes under the pseudonym Omniscient Trash) 45,46c43,44 soon every Tom, Dick or Harry will be writing his own Perl book --- soon every Tom, Randal and Larry will be writing their own Perl book

RegExp Help !

2004-05-10 Thread amjoe11-3
Hi Gurus ! Well need your help in framing a RegExp I've to parse for the form tag in a HTML/ASP file and then when i get that i need to get only yhe action filepath in to an array ! How do i do it ? For Example form name=register id=something action=register/doregister.asp i need only

Re: RegExp Help !

2004-05-10 Thread David Dorward
On 10 May 2004, at 17:42, [EMAIL PROTECTED] wrote: Well need your help in framing a RegExp I've to parse for the form tag in a HTML/ASP file and then when i get that i need to get only yhe action filepath in to an array ! How do i do it ? Parse::HTML would suggest itself rather then a regex.

Re: [Perl-beginners] RegExp Help !

2004-05-10 Thread Remko Lodder
Hey Joe, [EMAIL PROTECTED] wrote: Hi Gurus ! I am not a Guru, i am a newb :-) Well need your help in framing a RegExp I've to parse for the form tag in a HTML/ASP file and then when i get that i need to get only yhe action filepath in to an array ! How do i do it ? For Example form

uniq sort (GNU apps) for Windows -- http://unxutils.sourceforge.net/

2004-05-10 Thread shawn_milochik
Just an FYI, after reading one of the posts in the digest I receive for this list. There are 121 GNU command-line apps for the Win32 environment. The download is a .zip file, about 3.2 megs. I hope some of you find joy in your Windows use with it. http://unxutils.sourceforge.net/

Reading a .dbm file

2004-05-10 Thread Mame Mbodji
Does anyone know how to read a dbm file. I tried this, but in vain: $db = 'test.dbm'; dbmopen(%DATA, $db, 0644) or die Can't open DB_File $db : $!\n; while(($key,$values) = each(%DATA)) { print $key has value of $value\n; } I do not get any data back. When I look at the file,

Problems with Perl CPAN on Solaris 9

2004-05-10 Thread Richard Crawford
I'm trying to use the CPAN module to install new modules on my Solaris 9 server. I've logged in as root, and I've tried the following: $ perl -MCPAN -e 'shell' cpan install HTML::Parse ...and this is what the output looks like: Running install for module HTML::Parse Running make for

Re: Problems with Perl CPAN on Solaris 9

2004-05-10 Thread Wiggins d Anconia
I'm trying to use the CPAN module to install new modules on my Solaris 9 server. I've logged in as root, and I've tried the following: $ perl -MCPAN -e 'shell' cpan install HTML::Parse ...and this is what the output looks like: [snip] Any ideas? I have gcc installed and

Re: File Monitoring

2004-05-10 Thread Robin Sheat
On Mon, May 10, 2004 at 08:35:53AM -0600, Wiggins d Anconia wrote: There is a directory watching component in POE or you could grow your There is also the FAM daemon, which taps into the kernel to do it. I'm sure that there is a perl module to talk to that. -- Robin [EMAIL PROTECTED]

Re: Piping output mutt perl

2004-05-10 Thread Robin Sheat
On Mon, May 10, 2004 at 12:23:44PM -0400, Paul D. Kraus wrote: The only problem is thats kind of lengthy i would like to have a script wrap my script that would have the mutt command built into it. Or just bind a button to it in ~/.muttrc, so that mutt does all the hard work. -- Robin [EMAIL

Using 'last' in for loop, and putting subst-regex within an 'if'

2004-05-10 Thread Matthew Miller
Hello. I've been hacking on Erik Oliver's rather nice setext-to-html script, refining it beyond the original interpretations of setext back in 2002. I've run into two major snags that my limited knowledge of Perl is not allowing me to get past. I'd appreciate any pointers or assistance anyone

modifying text files using Inline editing

2004-05-10 Thread Timothy Duke
Hi, I have got two versions of a script to eliminate single line-feeds from a file. The first one does weird stuff - duplicating lines and messing the text file up. The second one works (I copied it from a Perl guide), but I don't understand why. I would much prefer the first one to work -

editing files inline, searching for \n\n\n

2004-05-10 Thread Timothy Duke
Hi, I have got two versions of a script to eliminate single line-feeds from a file. The first one does weird stuff - duplicating lines and messing the text file up. The second one works (I copied it from a Perl guide), but I don't understand why. I would much prefer the first one to work -

Re: inline editing of files, searching for \n\n\n

2004-05-10 Thread WilliamGunther
In a message dated 5/10/2004 12:22:06 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: Hi, I have got two versions of a script to eliminate single line-feeds from a file. The first one does weird stuff - duplicating lines and messing the text file up. The second one works (I copied it from

Re: inline editing of files, searching for \n\n\n

2004-05-10 Thread Jose Alves de Castro
The first one does weird stuff Looks like -i only works with '', not with 'FILE' (though I could not find that documented). Can you tell me how to change the first one to make it work? If you really need to do that, try 'open(STDIN,$filetobechanged)' instead. Then, 'while()' instead of

installing DBI on HPUX

2004-05-10 Thread Christian Stalp
Hello together, I have a problem! I use a HP-PaRisc Server with HPUX 10.20 and I just tried to install the DBI-module for Perl. After calling: perl Makefile.PL I got this warning: Warning: prerequisite Test::More failed to load: Can't locate Test/More.pm in @INC (@INC contains: lib

File Monitoring

2004-05-10 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi there, Can anyone recommend a good way to have a perl script that constantly monitors for the creation of new files on UNIX and launches another process? Thanks! Cheers, Ben -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: installing DBI on HPUX

2004-05-10 Thread David Dorward
On 10 May 2004, at 11:44, Christian Stalp wrote: I just tried to install the DBI-module for Perl. Can't locate Test/More.pm After that the make dosn't work either! What can I do? Install Test::More first. (You might want to check out the CPAN module, which can be configured to auto-install

RE: editing files inline, searching for \n\n\n

2004-05-10 Thread Charles K. Clarkson
Timothy Duke [EMAIL PROTECTED] wrote: : : Also, I understand that the operator reads in one : line at a time. If I wish to eliminate only triple : line-feeds (\n\n\n) and leave double and single : linefeeds, I presume won't work. Without reading : in the whole file at once, how can I achieve

Re: installing DBI on HPUX

2004-05-10 Thread Christian Stalp
I tryed it at another way. I got an older version: DBI-1.21 because I still use perl 5.6 not 5.6.1! perl Makefile.pl works, all is fine. But now I get this: (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored. (Bundled) cc: warning 480: The -O option

RE: installing DBI on HPUX

2004-05-10 Thread NYIMI Jose (BMB)
-Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 12:44 PM To: [EMAIL PROTECTED] Subject: installing DBI on HPUX Hello together, I have a problem! I use a HP-PaRisc Server with HPUX 10.20 and I just tried to install the DBI-module

RE: Problem using File::RsyncP module

2004-05-10 Thread NYIMI Jose (BMB)
-Original Message- From: BERTHOLD Jean [mailto:[EMAIL PROTECTED] Sent: Saturday, May 08, 2004 3:45 PM To: [EMAIL PROTECTED] Cc: BERTHOLD Jean Subject: Problem using File::RsyncP module [snip] I have never used File::RsyncP module but here Are some of the thinks that raised doubt to me:

Re: editing files inline, searching for \n\n\n

2004-05-10 Thread John W. Krahn
Timothy Duke wrote: Hi, Hello, I have got two versions of a script to eliminate single line-feeds from a file. You should use chomp() to remove newlines. Using the substitution operator globally is forcing the whole line to be scanned. The first one does weird stuff - duplicating lines

RE: installing DBI on HPUX

2004-05-10 Thread NYIMI Jose (BMB)
-Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 1:27 PM To: [EMAIL PROTECTED] Cc: David Dorward Subject: Re: installing DBI on HPUX I tryed it at another way. I got an older version: DBI-1.21 because I still use perl 5.6 not

Re: installing DBI on HPUX

2004-05-10 Thread Christian Stalp
You either need the HP ANSI C compiler or GCC. Since you seem to use a perl which was build using the HP ANSI C compiler it's easiest to install that compiler on the system you're trying to get DBI to work. However, you need to PAY for that compiler so you might want to switch to GCC. I'm