Re: Premature end of script header error....

2007-10-24 Thread Joerg Keller
hi nexis! This code works fine for me and I am able to see the graph. But when the code goes on production server, it gives Internal Server Error. I have check the error logs and it says the premature end of header. sorry, but you checked the logs not good enough. the message about the

Re: How do I replace a part of huge text file

2007-10-24 Thread the_train_man
On Oct 22, 10:32 am, [EMAIL PROTECTED] (Dr.Ruud) wrote: [EMAIL PROTECTED] schreef: I would like to replace a part of a really big (4GB) text file. And the contents that I want to change is really a small but continuous portion. Could some one please help me with the best way I can do this

Re: Can't figure the regex

2007-10-24 Thread Anuradha Uduwage
Thanks guys, It took me while but I figured it out... mostly i was confuse with {2,5}. because I thought it should be {2,3} since i have never seen a domain address with 5 characters. On 10/23/07, Jeff Pang [EMAIL PROTECTED] wrote: Yes,this is a regex for email matching,but may be broken under

Trying to figure the Regex Please Help

2007-10-24 Thread newBee
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: Trying to figure the Regex Please Help

2007-10-24 Thread Andrew Curry
^([a-zA-Z0-9_\-\.]+ # any character repeated from the set memorized into $1 )@ # followed by an @ ([a-zA-Z0-9_\-\.]+) # any character repeated from the set memorized into $2 \.([a-zA-Z]{2,5})$ # any alphabetic character in both cases 2 - 5 in length into $3 It looks like it will match an email

New to PerlNET

2007-10-24 Thread TonyShirt
I'm trying to build a .Net dll that I can call from VBA from some perl. I've fiddled around with the PerlNet application and docs and I just cant seem to get it to work. Here is the object I'm trying to convert: package SNPutils; #Constructor sub new { my($package) = @_; return bless {},

Trying to figureout regex please help

2007-10-24 Thread newBee
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Trying to figureout regex please help

2007-10-24 Thread Omega -1911
1. ^([a-zA-Z0-9_\-\.]+)@ Can contain a group of letters (case insensitive) or numbers (0-9), a period, underscore, hyphen and the @ sign is required. 2. ([a-zA-Z0-9_\-\.]+)\. Can contain a group of letters (case insensitive) or numbers (0-9), a period, hyphen, underscore and end with a period.

Re: Can't figure the regex

2007-10-24 Thread Jeff Pang
On 10/24/07, Anuradha Uduwage [EMAIL PROTECTED] wrote: since i have never seen a domain address with 5 characters. Not only 5 characters,but 6 characters are permitted.like these: .museum--Museums .travel--Travel related businesses -- To unsubscribe, e-mail: [EMAIL

RE: Trying to figureout regex please help

2007-10-24 Thread Andrew Curry
A better one for email may be [EMAIL PROTECTED] \.]*[a-zA-Z]$ -Original Message- From: Omega -1911 [mailto:[EMAIL PROTECTED] Sent: 24 October 2007 08:48 To: beginners perl Subject: Re: Trying to figureout regex please help 1. ^([a-zA-Z0-9_\-\.]+)@ Can contain a group of letters (case

RE: Trying to figureout regex please help

2007-10-24 Thread Andrew Curry
Or If you want to be really silly http://ex-parrot.com/~pdw/Mail-RFC822-Address.html -Original Message- From: Andrew Curry [mailto:[EMAIL PROTECTED] Sent: 24 October 2007 09:13 To: Omega -1911; beginners perl Subject: RE: Trying to figureout regex please help A better one for email

Re: PArsing tables of web page directly on the web.

2007-10-24 Thread Prabu Ayyappan
Hi Siva, Leave the perl script and first try the url in your browser. If it works fine means then the code will get you the HTML contecnt of that page. Thanks and Regards, Prabu.M.A - Original Message From: Siva Prasad [EMAIL PROTECTED] To: beginners@perl.org Sent: Wednesday,

Re: undefined symbol: Perl_sv_2iv_flags

2007-10-24 Thread Prabu Ayyappan
Hi Siva, I doubt the problem is with the version of perl you are using. The symbol Perl_sv_2iv_flags may be introduced with the new version of perl Try with Perl version is: v5.8.9 - Original Message From: sivasakthi [EMAIL PROTECTED] To: beginners perl beginners@perl.org Sent:

Re: Trying to figureout regex please help

2007-10-24 Thread yaron
Hi, You can also try use Regexp::Common::Email::Address. See http://search.cpan.org/~cwest/Regexp-Common-Email-Address-1.01/lib/Regexp/Common/Email/Address.pm Yaron Kahanovitch - Original Message - From: Andrew Curry [EMAIL PROTECTED] To: Andrew Curry [EMAIL PROTECTED], Omega -1911

test

2007-10-24 Thread Sayed, Irfan (Irfan)

qx string

2007-10-24 Thread Sayed, Irfan (Irfan)
Hi All, I am executing following line in my perl script. chomp(@files = qx(cleartool desc -fmt %[versions]p\n activity:$ENV{CLEARCASE_ACTIVITY})); But i am getting following error when i execute the script. sh: cleartool desc -fmt %[versions]p: not found sh: activity:: not found As per

Net::SFTP

2007-10-24 Thread Octavian Rasnita
Hi, I want to use Net::SFTP so I need to install Net::SSH::Perl But at the following test it sleeps for more hours: t/03-packet..ok 1/10 so I cannot continue to install the module. Does anyone know what's the problem or how I can solve it? Thanks. Octavian -- To unsubscribe,

RE: PArsing tables of web page directly on the web.

2007-10-24 Thread Bob McConnell
From: Siva Prasad [mailto:[EMAIL PROTECTED] Hi Gurus, I wanted to parse a PHP page which is on web. I don't have access to server where the PHP page is hosted. So I wanted to get source of that particular page and then parse the source file. When you access a PHP page with HTTP, you will

Re: Net::SFTP

2007-10-24 Thread Jeff Pang
I have seen many guys on this list mentioned Net::SSH install problems. Maybe you can force to install it without `make test` steps? On 10/24/07, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I want to use Net::SFTP so I need to install Net::SSH::Perl But at the following test it sleeps

Re: PArsing tables of web page directly on the web.

2007-10-24 Thread Gunnar Hjalmarsson
Siva Prasad wrote: use LWP::UserAgent ; $ua = new LWP::UserAgent ; $ua-agent(Mozilla/4.0) ; # Play with their minds $req = new HTTP::Request 'GET', 'http://www.jimmyr.com:80/free_education.php' ; $req-header('Accept' = 'text/html') ; $res = $ua-request($req) ; if($res-is_success){

RE: Net::SFTP

2007-10-24 Thread RICHARD FERNANDEZ
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Pang Sent: Wednesday, October 24, 2007 8:22 AM To: Octavian Rasnita Cc: beginners perl Subject: Re: Net::SFTP I have seen many guys on this list mentioned Net::SSH install problems. Maybe

Re: Trying to figureout regex please help

2007-10-24 Thread Dr.Ruud
Andrew Curry schreef: Or If you want to be really silly http://ex-parrot.com/~pdw/Mail-RFC822-Address.html What is silly about that? It is not complete though. See also: http://search.cpan.org/~abigail/RFC_RFC822_Address/Address.pm http://search.cpan.org/~rjbs/Email-Valid/lib/Email/Valid.pm

Re: qx string

2007-10-24 Thread Matthew Whipple
Sayed, Irfan (Irfan) wrote: Hi All, I am executing following line in my perl script. chomp(@files = qx(cleartool desc -fmt %[versions]p\n activity:$ENV{CLEARCASE_ACTIVITY})); But i am getting following error when i execute the script. sh: cleartool desc -fmt %[versions]p: not

modify mirror list - CPAN

2007-10-24 Thread Beginner
Hi, I want to modify the mirror list that I selected when I did a first run of perl -MCPAN. One of the mirror I choose has stopped being a mirror and causing the the install process to take much longer. I did perl -MCPAN -e shell but there were no options that looked relevant. Is there a way

Re: modify mirror list - CPAN

2007-10-24 Thread Tom Phoenix
On 10/24/07, Beginner [EMAIL PROTECTED] wrote: I want to modify the mirror list that I selected when I did a first run of perl -MCPAN. You can modify your settings within a CPAN shell session by using the o command. But it may be easier to directly edit the settings file, which is probably in

Re: problem runing code | strange Error

2007-10-24 Thread Matthew Whipple
Juan B wrote: Ok I did it and know I get another error :-( here goes the error: Died at /usr/lib/perl5/site_perl/5.8.8/Mail/Mailer.pm line 284. I don't have that module and therefore have no idea what line 284 is or to what it applies, but here are a couple suggestions. this is the

Net::DNS::Resolver

2007-10-24 Thread oryann9
All, Why is it when I turn off debug mode, I get no output? I was expecting output similar to what nslookup shows for a simple query. My goal is to look up by NAME and by IP within 2 domains to determine success and failure. use strict; use warnings; use Carp; snip my $res =

Re: How do I replace a part of huge text file

2007-10-24 Thread Matthew Whipple
the_train_man wrote: On Oct 22, 10:32 am, [EMAIL PROTECTED] (Dr.Ruud) wrote: [EMAIL PROTECTED] schreef: I would like to replace a part of a really big (4GB) text file. And the contents that I want to change is really a small but continuous portion. Could some one please help me

Re: PArsing tables of web page directly on the web.

2007-10-24 Thread Matthew Whipple
Prabu Ayyappan wrote: Hi Siva, Leave the perl script and first try the url in your browser. If it works fine means then the code will get you the HTML contecnt of that page. Thanks and Regards, Prabu.M.A If you end up able to reach the URL from a browser and somehow not from the

Re: Help generating XML output

2007-10-24 Thread Rob Dixon
Jenda Krynicky wrote: From: Rob Dixon [EMAIL PROTECTED] Jenda Krynicky wrote: It's just a matter of one map(): #!perl use XML::Generator; $ref = { 'dermot' = '10', 'joe' = '17', 'rose' = '11', 'phil' = '13', 'brian' = '20',

Re: qx string

2007-10-24 Thread Paul
On Wed, October 24, 2007 6:12 am, Sayed, Irfan (Irfan) wrote: Hi All, I am executing following line in my perl script. chomp(@files = qx(cleartool desc -fmt %[versions]p\n activity:$ENV{CLEARCASE_ACTIVITY})); But i am getting following error when i execute the script. sh: cleartool desc

qx string

2007-10-24 Thread Sayed, Irfan (Irfan)
Hi All, I am executing following line in my perl script. chomp(@files = qx(cleartool desc -fmt %[versions]p\n activity:$ENV{CLEARCASE_ACTIVITY})); But i am getting following error when i execute the script. sh: cleartool desc -fmt %[versions]p: not found sh: activity:: not found As per

test

2007-10-24 Thread Sayed, Irfan (Irfan)
test

Re: qx string

2007-10-24 Thread Chas. Owens
On 10/24/07, Sayed, Irfan (Irfan) [EMAIL PROTECTED] wrote: snip chomp(@files = qx(cleartool desc -fmt %[versions]p\n activity:$ENV{CLEARCASE_ACTIVITY})); snip Your problem is the outer quotes. They don't belong there. You are telling the shell to run the file named cleartool desc -fmt

Re: test

2007-10-24 Thread Tom Phoenix
On 10/23/07, Sayed, Irfan (Irfan) [EMAIL PROTECTED] wrote: test Your test messages are failing: They are being distributed to a large group of people who have no need of them. Test messages are about as welcome in this forum as spam would be. If you have a message to send to the list, send

Re: qx string

2007-10-24 Thread yaron
Hi, I think you don't run the script under perl try: perl your script name Any way, if you are using Unix system, look at your script and figure if the first line have the shbang #!/usr/bin/perl Yaron Kahanovitch - Original Message - From: Irfan Sayed (Irfan) [EMAIL PROTECTED] To:

Re: qx string

2007-10-24 Thread yaron
Hi, Sorry my mistake its not a shbang problem... Yaron - Original Message - From: [EMAIL PROTECTED] To: Irfan Sayed (Irfan) [EMAIL PROTECTED] Cc: beginners@perl.org Sent: Wednesday, October 24, 2007 7:06:47 PM (GMT+0200) Asia/Jerusalem Subject: Re: qx string Hi, I think you don't run

Re: Net::DNS::Resolver

2007-10-24 Thread [EMAIL PROTECTED]
On Oct 24, 4:22 pm, [EMAIL PROTECTED] (Oryann9) wrote: Why is it when I turn off debug mode, I get no output? What output do you get when you don't turn off debug? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Net::DNS::Resolver

2007-10-24 Thread Tom Phoenix
On 10/24/07, oryann9 [EMAIL PROTECTED] wrote: Why is it when I turn off debug mode, I get no output? Are you saying that there's a difference in your program's execution depending upon whether Perl's debugger (activated via the -d command line switch) is or is not running? If that's the case,

Re: Net::DNS::Resolver

2007-10-24 Thread oryann9
Why is it when I turn off debug mode, I get no output? What output do you get when you don't turn off debug? -- I found what is causing this, $query is 'undef' So was it the intent of the person who wrote this module to have this code act in this way? Do you have a recommendation on how

Re: Trying to figure the Regex Please Help

2007-10-24 Thread Chas. Owens
On 10/24/07, Andrew Curry [EMAIL PROTECTED] wrote: ^([a-zA-Z0-9_\-\.]+ # any character repeated from the set memorized into $1 )@ # followed by an @ ([a-zA-Z0-9_\-\.]+) # any character repeated from the set memorized into $2 \.([a-zA-Z]{2,5})$ # any alphabetic character in both cases 2 - 5 in

Re: Net::DNS::Resolver

2007-10-24 Thread oryann9
What output do you get when you don't turn off debug? -- I found what is causing this, $query is 'undef' So was it the intent of the person who wrote this module to have this code act in this way? Do you have a recommendation on how to make this more usable in terms of success/failure

Re: New to PerlNET

2007-10-24 Thread Jenda Krynicky
From: [EMAIL PROTECTED] I'm trying to build a .Net dll that I can call from VBA from some perl. snipped When I try and register the dll. I get DLL registerserver entry point could not be found. when I try and access the DLL through the references I get Cant add a reference to the

Re: Help generating XML output

2007-10-24 Thread Jenda Krynicky
From: Rob Dixon [EMAIL PROTECTED] Jenda Krynicky wrote: From: Rob Dixon [EMAIL PROTECTED] Well yes, of course that's possible. But you're advocating abandoning strictures and writing unintelligible code by proposing it. Beg your pardon? use strict doesn't have any