Re: need help parsing file for output

2007-09-26 Thread Gerald Wheeler
Thank you both... much appreciated.. Jerry Dr.Ruud [EMAIL PROTECTED] 09/25/07 5:10 PM John W. Krahn schreef: open my $IN, '', $file_in or die Cannot open '$file_in' $! open my $OUT, '', $file_out or die Cannot open '$file_out' $! These lines could use a ; at the end. -- Affijn, Ruud

Connecting through ODBC

2007-09-26 Thread Sugrue, Sean
I'm trying to connect to an apache server using ODBC within perl express. I already tested connecting through excel. I was wondering if anyone has a snippet of code I could use to test the connecting through perl express. My guess I also need to download the dbi module. Sean -- To unsubscribe,

Changing CPAN config before initial config?

2007-09-26 Thread RICHARD FERNANDEZ
Hi folks, I have a lot of boxes which are behind firewalls. Fortunately, I have a local CPAN mirror that I install modules from. The problem is that often when I run the CPAN shell (# perl -MCPAN -eshell) I am asked the question: Are you ready for manual configuration?. After I answer yes at some

Re: Changing CPAN config before initial config?

2007-09-26 Thread Rob Dixon
RICHARD FERNANDEZ wrote: I have a lot of boxes which are behind firewalls. Fortunately, I have a local CPAN mirror that I install modules from. The problem is that often when I run the CPAN shell (# perl -MCPAN -eshell) I am asked the question: Are you ready for manual configuration?. After I

Re: Connecting through ODBC

2007-09-26 Thread Rob Dixon
Sugrue, Sean wrote: I'm trying to connect to an apache server using ODBC within perl express. I already tested connecting through excel. I was wondering if anyone has a snippet of code I could use to test the connecting through perl express. My guess I also need to download the dbi module.

Re: Changing CPAN config before initial config?

2007-09-26 Thread Rob Dixon
Rob Dixon wrote: RICHARD FERNANDEZ wrote: I have a lot of boxes which are behind firewalls. Fortunately, I have a local CPAN mirror that I install modules from. The problem is that often when I run the CPAN shell (# perl -MCPAN -eshell) I am asked the question: Are you ready for manual

Re: Changing CPAN config before initial config?

2007-09-26 Thread Tom Phoenix
On 9/26/07, RICHARD FERNANDEZ [EMAIL PROTECTED] wrote: I have a lot of boxes which are behind firewalls. Fortunately, I have a local CPAN mirror that I install modules from. The problem is that often when I run the CPAN shell (# perl -MCPAN -eshell) I am asked the question: Are you ready for

Re: Strange error

2007-09-26 Thread [EMAIL PROTECTED]
On Sep 24, 9:17 pm, [EMAIL PROTECTED] (Caronte) wrote: Hi everybody. I'm learning Perl and CGI programming using MAMP as web- server on OSX and I can't use the standard CGI module. Look at this (very) simple script: #!/usr/local/bin/perl First obvious question, is that the correct path?

How to set a COM Object property to TRUE

2007-09-26 Thread bmw108
Hello, I am trying to set a WIN32 COM Object bool property true to enable a validation option. I can do it in VB like so. emailPtr.CorrectSyntax = True How do I do it in PERL? I have tried so many different things to no avail. $emailObj-{MxLookup} = (TRUE); $emailObj-{MxLookup} = $TRUE;

help regarding Comparision of two lines

2007-09-26 Thread raaki
hi friends recently i started learning perl.i need to print some statements after perticular line.in my file there is one line called puts conCheckFAIL#---occuring number of times.i need to print some statements after the 6th time it occuered.can you help me with that puts

Displaying a Link on A Web PAge with image/png header.

2007-09-26 Thread jeevs
Hi Forum!!! I want to plot a graph on a web page. I am using the GD::Graph module and can successfully plot the graph. The graph is displayed on the web page with the following code. ... ... print content-type: image/$graph_format\n\n; my $img_obj = $graph-plot([EMAIL

Re: How print a Hashtable with reference ?

2007-09-26 Thread JBallinger
Is there anything to do with the fact that he is trying to pass a reference hash? On Sep 23, 7:55 am, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: On 22 Sep, 04:43, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: Santana wrote: In this example this foreach loop in printHT function dont work

Re: Changing CPAN config before initial config?

2007-09-26 Thread Srinivas
Hi Richard, There will be a config.pm file in the cpan module directory, you can change the url list to point it to your local mirrors. Thank You, -srini RICHARD FERNANDEZ wrote: Hi folks, I have a lot of boxes which are behind firewalls. Fortunately, I have a local CPAN mirror that I

Re: bootstrapping in Perl

2007-09-26 Thread Tom Phoenix
On 9/26/07, Pedro Soto [EMAIL PROTECTED] wrote: I need to derive a subsample with replacement from a large distribution of data. Say if my large sample is 1 I need to get 100 data out of the 1 data and repeat the procedure n times(that's what I called boostrapping). Perl can easily

RE: Changing CPAN config before initial config?

2007-09-26 Thread RICHARD FERNANDEZ
-Original Message- From: Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 26, 2007 12:42 PM To: RICHARD FERNANDEZ Cc: Beginners List Subject: Re: Changing CPAN config before initial config? Hi Richard, There will be a config.pm file in the cpan module

help regarding Comparision

2007-09-26 Thread raaki
hi friends i started learning perl recently and i need a help regarding Comparision.i need to write a perl script where it replaces so many strings and print some statements after a perticular lines of code. i need to compare a sequence of two lines in a file and as soon as this two lines occur

Re: regex help

2007-09-26 Thread [EMAIL PROTECTED]
On Sep 25, 4:33 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: Jonathan Lang wrote: Rob Dixon wrote: Jonathan Lang wrote: I'm trying to devise a regex that matches from the first double-quote character found to the next double-quote character that isn't part of a pair; but for some reason,

large Files management

2007-09-26 Thread Armin Garcia
Hi well i work with mbox files, but i have a huge mbox file, its 339 MB and when i processing this file with Mail::MboxParser module, my program breaks becouse send a message of out of memory I think is becouse the module Mail::MboxParser try to up in the cache all the file but becouse the

Re: Displaying a Link on A Web PAge with image/png header.

2007-09-26 Thread Matthew Whipple
You probably wouldn't want to add the link to an image/png since that probably shouldn't work as it's not something png's should be doing. You'll want to output an html page and embed the image directly within the page source if you can't output a temporary file. Look into the data: URI type

Re: undef in data dumper output

2007-09-26 Thread Ron Bergin
On Sep 24, 8:38 pm, [EMAIL PROTECTED] wrote: I'm using html::tokeparser::simple and will next place desired data into hashes, but I'm having problems getting to the individual pieces of data. After using html::tokeparser::simple, then using a regex and pushing data into a new array, I can't

Re: Displaying a Link on A Web PAge with image/png header.

2007-09-26 Thread Dr.Ruud
jeevs schreef: I want to plot a graph on a web page. I am using the GD::Graph module and can successfully plot the graph. The graph is displayed on the web page with the following code. print content-type: image/$graph_format\n\n; my $img_obj = $graph-plot([EMAIL

Re: large Files management

2007-09-26 Thread Dr.Ruud
Armin Garcia schreef: well i work with mbox files, but i have a huge mbox file, its 339 MB and when i processing this file with Mail::MboxParser module, my program breaks becouse send a message of out of memory Change-or-convert to maildir-type storage? -- Affijn, Ruud Gewoon is een

Re: help regarding Comparision of two lines

2007-09-26 Thread yitzle
On 9/26/07, raaki [EMAIL PROTECTED] wrote: hi friends recently i started learning perl.i need to print some statements after perticular line.in my file there is one line called puts conCheckFAIL#---occuring number of times.i need to print some statements after the 6th time it

Re: help regarding Comparision

2007-09-26 Thread yitzle
Input: --- START --- abc def string1 das dsfa string2 dasf string1 string2 dfsdsf --- END --- Code: --- START --- #!/usr/bin/perl use warnings; use strict; die Wrong usage\n unless (defined $ARGV[0] and -f $ARGV[0]); open my $FH, $ARGV[0] or die Can't open file\n; my $string1 = 0; # Track if

win32 serial port

2007-09-26 Thread Saran . j . jegan
Hello , am using win32::serialport module to communicate with my serial port device, this is my code use Win32::SerialPort; my $serial_port; my $return; my $quiet = 1; $serial_port = Win32::SerialPort-new ($port,1) die Can't open serial port $port: $^E\n unless ($serial_port); my $configFile=

Re: Strange error

2007-09-26 Thread Caronte
On 25 Set, 12:37, [EMAIL PROTECTED] (Matthew Whipple) wrote: Some suggestions: rewrite ':standard'; as qw/:standard/; use warnings; check the web server error log for more verbose debugging information It would be a lot easier to diagnose if you know what file or directory

Re: Displaying a Link on A Web PAge with image/png header.

2007-09-26 Thread Rob Dixon
jeevs wrote: Hi Forum!!! I want to plot a graph on a web page. I am using the GD::Graph module and can successfully plot the graph. The graph is displayed on the web page with the following code. ... ... print content-type: image/$graph_format\n\n; my $img_obj =

Re: Displaying a Link on A Web PAge with image/png header.

2007-09-26 Thread Dr.Ruud
Rob Dixon schreef: If you're unable to write to the HTTP server machine then you're unable to change the contents of any web page at all. The webpages behind the URLs can be created fully dynamically, so you actually don't need write access to the file system of the HTTP server. An URL like

Re: help regarding Comparision

2007-09-26 Thread Dr.Ruud
yitzle schreef: open my $FH, $ARGV[0] or die Can't open file\n; open my $FH, , $ARGV[0] or die Error opening '$ARGV[0]': $!\n; -- Affijn, Ruud Gewoon is een tijger. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: win32 serial port

2007-09-26 Thread Dr.Ruud
[EMAIL PROTECTED] schreef: Hello , am using win32::serialport module ITYM Win32::SerialPort. Casing matters. -- Affijn, Ruud Gewoon is een tijger. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: win32 serial port

2007-09-26 Thread Matthew Whipple
You are using 2 constructors that may be stepping on each others toes. Opening the port with new may lock the port from being tied later. What is in the $configfile, since it appears as though most of the configuration is done in the script (although that configuration would probably be undone

Re: How to set a COM Object property to TRUE

2007-09-26 Thread Jenda Krynicky
From: [EMAIL PROTECTED] I am trying to set a WIN32 COM Object bool property true to enable a validation option. I can do it in VB like so. emailPtr.CorrectSyntax = True How do I do it in PERL? I have tried so many different things to no avail. $emailObj-{MxLookup} = (TRUE);