Re: REGEXP

2005-04-26 Thread Ing. Branislav Gerzo
[EMAIL PROTECTED] [D], on Tuesday, April 26, 2005 at 17:12 (-0400) made these points: D> s/sg//, s/\- {1,}(\w{1,})//,print +(split)[5,6,7], if (m/f01(\d+)/gi ) I think no one replied to you because we don't know what should be output. -- How do you protect mail on web? I use http://www.2pu.net

Re: Password

2005-04-26 Thread Ing. Branislav Gerzo
Rentachintala, Jagan [RJ], on Tuesday, April 26, 2005 at 18:00 (-0400) typed the following: RJ> I am a newbie to perl and I have a question. In one of my project, the perl RJ> script will create a logfile. Inside the log file, the username/password is RJ> in clear text. RJ> I am trying to hide

Re: REGEXP

2005-04-26 Thread Offer Kaye
On 4/27/05, [EMAIL PROTECTED] wrote: > Please help me find the regexp to replace -o-b- - - -f > thank you! > Replace it with *what*? > s/sg//, s/\- {1,}(\w{1,})//,print +(split)[5,6,7], if (m/f01(\d+)/gi ) > What does this code have to do with your question? > my $_ has these lines in it: >

Re: Binding Operator =~ Pattern Matching

2005-04-26 Thread John W. Krahn
Brian Volk wrote: Hi All. Hello, I'm having trouble getting my program to work with the files that contain trailing white spaces... I've been reading chapters 8 "More about Reg exp" and 9 "Using Reg exp" and I think I'm close... I can get the program to work if the txt files do not have trailing

Re: Binding Operator =~ Pattern Matching

2005-04-26 Thread Paul Kraus
> (my $orders_dir) > File 121212.TXT ...contains > 12345.html CR > 12346.html CR > > Here is the piece I'm having trouble w/ > > foreach my $html (@htmls) { > if ($html =~ /^($_)\s*/) { > my $msg = MIME::Lite->new ( Where does it fail? if ($html =~ /^($_)\s*/) $_ has no value s

Re: Password

2005-04-26 Thread Paul Kraus
Lots of ways to do this. Can you show us the code you have already written? On 4/26/05, Rentachintala, Jagan <[EMAIL PROTECTED]> wrote: > Hi, > > I am a newbie to perl and I have a question. In one of my project, the perl > script will create a logfile. Inside the log file, the username/passwor

RE: Spreadsheet::ParseExcel - Out of memory error

2005-04-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Craig Moynes wrote: > Hi All, > I am using the spreadsheet::parseexcel module to open up a series (31) > spreadsheets and grab the row counts. > > Here is an excerpt with the ParseExcel Code. > > my $oBook; > my $oWks; > foreach $hashEntry ( @LOGS ) > { > > my ( $localfile)= $ha

Password

2005-04-26 Thread Rentachintala, Jagan
Hi, I am a newbie to perl and I have a question. In one of my project, the perl script will create a logfile. Inside the log file, the username/password is in clear text. I am trying to hide the password in the logfile. Is there a way that I can hide the password or put an 'XX' in t

Binding Operator =~ Pattern Matching

2005-04-26 Thread Brian Volk
Hi All. I'm having trouble getting my program to work with the files that contain trailing white spaces... I've been reading chapters 8 "More about Reg exp" and 9 "Using Reg exp" and I think I'm close... I can get the program to work if the txt files do not have trailing spaces but they are com

Spreadsheet::ParseExcel - Out of memory error

2005-04-26 Thread Craig Moynes
Hi All, I am using the spreadsheet::parseexcel module to open up a series (31) spreadsheets and grab the row counts. Here is an excerpt with the ParseExcel Code. my $oBook; my $oWks; foreach $hashEntry ( @LOGS ) { my ( $localfile)= $hashEntry->{name}; my ( $err_msg )

REGEXP

2005-04-26 Thread DBSMITH
Please help me find the regexp to replace -o-b- - - -f thank you! s/sg//, s/\- {1,}(\w{1,})//,print +(split)[5,6,7], if (m/f01(\d+)/gi ) my $_ has these lines in it: -o-b- - - -f F01045 -o-b- - - -f F01046 -o-b- - - -f F01047 -o-b- - - -f F01048 -o-b- - -f F01049 -o-b- - - -f F01050 -o-b-

Spreadsheet::ParseExcel - Out of memory error

2005-04-26 Thread Craig Moynes
I have a piece of code that needs to open 31 excel spreadsheets, find out the row count for each. When it runs it gets about 10 files in and crashes with an Out of memory error. Here is an excerpt from the code: my $oBook; my $oWks; my ($iR, $iC, $oWkS, $oWkC); foreach $hashEntry ( @LOGS ) {

Re: rows returned and while statement

2005-04-26 Thread Jay Savage
On 4/26/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Ok I have an issue where I run an sql query against a database, and want > to evaluate whether or not an entry occurs for a given user, if NOT then > this run will be the first entry. Ok the problem occurs in the while > statement, everythi

rows returned and while statement

2005-04-26 Thread christopher . l . hood
Ok I have an issue where I run an sql query against a database, and want to evaluate whether or not an entry occurs for a given user, if NOT then this run will be the first entry. Ok the problem occurs in the while statement, everything works as expected if the user already has an entry in the DB,

Re: Re: Number with More then 15 Digits.

2005-04-26 Thread Offer Kaye
On 26 Apr 2005 13:35:27 -, Govardhan M. V wrote: > >Hi, > Thanks for the help, > put i tried this > use Math::BigInt; > $a = Math::BigInt->new("12345678901234567890"); > printf("%.0f\n",$a); > > out put is > 12345678901234567168 > > which is not right so please do let me know

Re: Some part of the text should not be converted

2005-04-26 Thread Offer Kaye
On 4/26/05, N. Ganesh Babu wrote: > Dear Offer Kaye, > > I want to preserve the tag also in the context. Can you help me how to > do it. If you run 2nd time also the same action will happen. If we remove, > in the 2nd execution again the conversion will take place on these words. > Hi Ganes

Re: Number with More then 15 Digits.

2005-04-26 Thread Offer Kaye
On 26 Apr 2005 11:35:59 -, Govardhan M. V wrote: > > Hi > > $a = 1234567890123456789; > printf ("%0.0f\n", $a); > > Out Put is > 1234567890123456800 > > which is wrong can any one let me know how do we handle > Digits More than 15 digits .. > There is no "wrong" here. When trying to stor

Number with More then 15 Digits.

2005-04-26 Thread Govardhan M. V
  Hi $a = 1234567890123456789; printf ("%0.0f\n", $a); Out Put is 1234567890123456800 which is wrong can any one let me know how do we handle Digits More than 15 digits .. Regards Govardhan MV

Re: core in perl??? i am not sure where to report this...

2005-04-26 Thread Offer Kaye
On 4/26/05, Manish Sapariya wrote: > [EMAIL PROTECTED] gdb /usr/bin/perl core.24670 > GNU gdb Red Hat Linux (5.2.1-4) Read "perldoc perlbug" -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Some part of the text should not be converted

2005-04-26 Thread Offer Kaye
On 4/26/05, N. Ganesh Babu wrote: > > the above code is not working if the input is like this. "A Practical > Guide to CD-Rom and DVD" > the output "A Practical Guide to CD-Rom and CD-Rom" > One way is to get the list of texts between the and tag. I choose to do it together with the substitu

core in perl??? i am not sure where to report this...

2005-04-26 Thread Manish Sapariya
[EMAIL PROTECTED] gdb /usr/bin/perl core.24670 GNU gdb Red Hat Linux (5.2.1-4) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying"

Re: setting PERL5LIB path

2005-04-26 Thread Manish Sapariya
Hi, I was going through perldoc perlrun and here it has to say about PERL5LIB: === PERL5LIBA colon-separated list of directories in which to look for Perl library files before looking in the standard library a

Re: getting file name/line num info

2005-04-26 Thread Manish Sapariya
Thanks, I did not realize that (caller) is a function call and [1,2] was a slicing operation. Thanks for the info. Regards, Manish On 04/25/2005 08:49 PM, Jay Savage wrote: On 4/25/05, Manish Sapariya <[EMAIL PROTECTED]> wrote: Hello, Can somebody explain me the magic here sub vprint (@) {

ANN: PDF::ReportWriter

2005-04-26 Thread Dan
Hi all. I'm pleased to announce the 1st release of my 2nd open-source project: PDF::ReportWriter. It's designed to assist in making high-quality business reports for archiving or printing, and uses PDF::API2 to render directly to PDF. Supported features: - html-table-like layout engine - text align

Some part of the text should not be converted

2005-04-26 Thread N. Ganesh Babu
Dear All, I am doing capitalization of the titles. In that the text within tag should be as input. means my conversion program should not touch this text. What I have used is, I have removed this part from the text in the beginning and in the last once again I put the text back. This working

Re: Very basic question about running perl cgi on tomcat

2005-04-26 Thread Offer Kaye
On 4/25/05, Robert Kerry wrote: > What should I do? Thank you. > You should use Google :-) The first link returned by searching for "Tomcat" and "Perl": http://www.ftponline.com/javapro/2003_03/online/perl_teden_03_18_03/ HTH, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi