Re: How to use sub directories in IIS and Apache HTTPD

2005-02-07 Thread Wiggins d'Anconia
Siegfried Heintze wrote: When I try to employ subdirectories my perl cgi programs stop working. This is because the use statements cannot find their files. I could convert the use evidence_db; statements to require '../evidence_db.pm'; and that works. But this is painful. Surely there is an easier

perl.beginners.cgi Weekly list FAQ posting

2005-02-07 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

Re: Module confusion

2005-02-07 Thread Paul Archer
Keep in mind two things: 1) you may need to build the module locally on a similar box (linux, same basic version of Perl), and 2) since the module is Time::HiRes, there needs to be a Time directory in your modules directory, and the HiRes.pm file need to be in that directory. EG:

Incorrect HTML Rendering?

2005-02-07 Thread Graeme St. Clair
I have the following to kick off an HTML page:- ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd [ !ENTITY help Help ] html

Strange problem with cookie script

2005-02-07 Thread Chris Brown
Hi, I am getting a strange problem with two cookie scripts I've written. The first, cookie_maker.cgi, creates two cookies containing a user id and a security key: #!/usr/bin/perl -w use strict; # creates cookies print Set-Cookie:user=cbfb\n; print Set-Cookie:secid=1234\n; #

RE: Strange problem with cookie script

2005-02-07 Thread Moon, John
I am getting a strange problem with two cookie scripts I've written. The first, cookie_maker.cgi, creates two cookies containing a user id and a security key: #!/usr/bin/perl -w use strict; # creates cookies print Set-Cookie:user=cbfb\n; print Set-Cookie:secid=1234\n;

Re: Mail-Internet problem

2005-02-07 Thread Wiggins d'Anconia
Douglas Lentz wrote: Hello friends, I'm trying to get Mark Overmeer's Mail::Internet module to work on my system. Problem: I can't send mail using Mail::Internet's smtpsend method. Details: This is a Red Hat Linux box connecting to the internet over plain old dial-up PPP. I am using my ISP's

Filter Regular Expressions

2005-02-07 Thread Gomez, Gonzalo
Hi, I want to filter text using regular expressions, but i don't know how to find in a file a string like this NONE , or NONE/ , or /bsvgId , Etc. I try to use the little script bellow with a count for the word but this scrit doesn't work if i put symbols like / , \ , , (Reserved Symbols).

Mail-Internet problem

2005-02-07 Thread Jay
On Mon, 07 Feb 2005 10:24:14 -0500, Wiggins d'Anconia [EMAIL PROTECTED] wrote: Douglas Lentz wrote: Hello friends, I'm trying to get Mark Overmeer's Mail::Internet module to work on my system. Problem: I can't send mail using Mail::Internet's smtpsend method. Details: This is a

Re: Filter Regular Expressions

2005-02-07 Thread Ezra Taylor
Gomez, Gonzalo wrote: Hi, I want to filter text using regular expressions, but i don't know how to find in a file a string like this NONE , or NONE/ , or /bsvgId , Etc. I try to use the little script bellow with a count for the word but this scrit doesn't work if i put symbols like / , \ , ,

RE: Filter Regular Expressions

2005-02-07 Thread Gomez, Gonzalo
Ezra, thanks beforehands for your help. but i'm searching that type of word : #!/usr/bin/perl -w open(FILE, altoc1.res) or die Can't open : $!\n; $count=0; while(FILE) { chomp; if (m/NONE/)#or NONE/ , any word , /any Word like XML

RE: Filter Regular Expressions

2005-02-07 Thread Charles K. Clarkson
Gomez, Gonzalo [EMAIL PROTECTED] wrote: : Hi, I want to filter text using regular expressions, but i : don't know how to find in a file a string like this NONE , : or NONE/ , or /bsvgId , Etc. I try to use the little : script bellow with a count for the word but this scrit : doesn't work if i put

perl.beginners Weekly list FAQ posting

2005-02-07 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):

Apache needs permissions to create file

2005-02-07 Thread Elliot Holden
This is my script open(OUTFILE, , survey.txt) or die $!; I am runing this script through the webserver using a browswer, (action=http://localhost/pathtothecgiscript/cgiscript.cgi;) and the file, survey.txt, does NOT get created. When running from the command line the file DOES get created. If

RE: Apache needs permissions to create file

2005-02-07 Thread Bob Showalter
Elliot Holden wrote: This is my script open(OUTFILE, , survey.txt) or die $!; I am runing this script through the webserver using a browswer, (action=http://localhost/pathtothecgiscript/cgiscript.cgi;) and the file, survey.txt, does NOT get created. When running from the command

RE: Filter Regular Expressions

2005-02-07 Thread Gomez, Gonzalo
Charles, I am still working with a siemmens platform, HLRi and the output from the HLRi machine is an XML document with the tags and subscriber data inside; i try to look into the significance tags and extract some information about mobile cellular fraud. Thanks beforehands for your help...

RE: Filter Regular Expressions

2005-02-07 Thread Charles K. Clarkson
Gomez, Gonzalo [EMAIL PROTECTED] wrote: : How could i get or use this XML parser module ? There are many XML parser modules. They are kept on a network named CPAN. Follow this link to the CPAN FAQ. http://www.cpan.org/misc/cpan-faq.html#Where_find_Perl_modules : Thanks for your answer

grabbing print output

2005-02-07 Thread Ing. Branislav Gerzo
Hi all, I have tricky question, and I await answer will be not so simple, here is snippet: open (PIPE, |-, convert -negate -modulate 200,0 -negate - pbm:- | gocr -) or warn $!\n; print PIPE $file; #file is image content close PIPE; prints to STDOUT everything I need (it is one line, lets

RE: grabbing print output

2005-02-07 Thread Bakken, Luke
open (PIPE, |-, convert -negate -modulate 200,0 -negate - pbm:- | gocr -) or warn $!\n; print PIPE $file; #file is image content close PIPE; prints to STDOUT everything I need (it is one line, lets say This is test). How I can grab this, so I have in $var = This is test ? ofcourse

Reg parameters to a perl script

2005-02-07 Thread arjun.mallik
Hi , I have a perl script which accepts few predefined parameters and values for them. It is like this : myscript.pl -param1 value1 -param2 value2 Now my requirement is , if value is also has and hyphen - then script should accept it and what ever i give after the -param option should

Re: grabbing print output

2005-02-07 Thread Ing. Branislav Gerzo
Bakken, Luke [BL], on Monday, February 7, 2005 at 15:38 (-0800) thinks about: BL Redirect to a file and read the file: BL my $filename = '/tmp/output'; BL open (PIPE, |-, convert -negate -modulate 200,0 -negate - pbm:- | gocr - $filename 21) or warn $!\n; BL open IN, $filename or die ..