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 2>&1") or warn "$!\n"; BL> open IN, $filename or d

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 -param2 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 be taken as

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 te

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, l

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 !

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... G

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

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 cre

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):

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 , : or , or , 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() { chomp; if (m//)#or , <"any word"> , like XML {

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 , or , or , 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 Symbo

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. > > > > Det

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 , or , or , 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). Anyone can help

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 SMT

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";

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"; #