Weird Regular expression.

2007-10-05 Thread ash
Hello fellow scripters! I've come across weird regex like this: (.{4}).(.{21}).(.{3})..(.{3}). (.{10}).(.{9}). Has anyone any idea about the syntax of these regex? Thank you for your help. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://lea

Win32::OLE help for saving file.

2007-09-13 Thread ash
Hello fellow scripters!! What stumps me is pretty straight forward. I need to save a Word file using Win32::OLE, but I need to replace an existing file if there is any. What properties do I have to set before calling SaveAs() to do that? Any help is appreciated. Thank you very much. -- To unsub

Displaying html document.

2007-08-15 Thread ash
Hi! What is good way to display html documents in GUI created by Perl script? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Component Object Model

2007-07-02 Thread ash
Hello! Does Perl support COM? If yes can I have an example of creating an object and using functions? Thank you in advance. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Removing decimal points

2007-06-14 Thread ash
Thank you all! I used POSIX floor() and ceil(). Thanks for all the suggestion. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Need help for writing attachment saver

2007-06-12 Thread ash
Hi! I'm trying to write a code to read mail from POP3 server and then save the attachment in specified folder. I checked the Email::MIME::Attachment::Stripper which needs to be initialized with Email::MIME object. I checked the Email::MIME module but I couldn't understand how to read mail and crea

Re: Writing data row at a time using OLE

2007-06-11 Thread ash
On Jun 11, 12:39 pm, [EMAIL PROTECTED] (Mumia W.) wrote: > On 06/11/2007 08:59 AM, ash wrote: > > > Hi everyone! > > > I am using Win32::OLE for writing data in existing Excel file. I would > > like to know how to write data one row at a time. Writing one cell at >

Writing data row at a time using OLE

2007-06-11 Thread ash
Hi everyone! I am using Win32::OLE for writing data in existing Excel file. I would like to know how to write data one row at a time. Writing one cell at a time is too slow, it took 17mins to write 527KB file. Thank you all very much for your help :). -- To unsubscribe, e-mail: [EMAIL PROTECTE

Removing decimal points

2007-06-08 Thread ash
Hello there! I need to remove decimal points from numbers. For eg 1.23 or 1.77 would be just 1. Any suggestion is appreciated. Thank you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Creating an array of hashes from a database while preserving order

2006-07-20 Thread Derek Ash
name", \%attr, $value),); #Display results return $template->output; } Thanks in advanceI am a Perl newbie, derek Derek Ash Application Programmer II University of Illinois College of Medicine at Peoria One Illini Drive, Box 1649 Peoria, Illinois 61656-1649 -- To unsubsc

Re: sorting

2006-03-19 Thread Ash Varma
sorry for an incomplete question, but this is exactly what I was after.. :) Thanks On 3/20/06, Christer Ekholm <[EMAIL PROTECTED]> wrote: > > "Ash Varma" <[EMAIL PROTECTED]> writes: > > > Hi.. > > > > I have: > > > > $code[0][0] = &qu

sorting

2006-03-19 Thread Ash Varma
4][1] = "27.1" $code[5][0] = "AZX" $code[5][1] = "1.9" What would be the best way to sort this? -- Ash Varma [EMAIL PROTECTED] [EMAIL PROTECTED] The browser you can trust! Get Firefox and rediscover the web! http://www.getfirefox.com/

Re: Adding ID numbers to names

2006-03-02 Thread Ash Varma
On 3/3/06, Ryan Gies <[EMAIL PROTECTED]> wrote: > > Ash Varma wrote: > > > > Any hint on the J Smith and J Smith Thomas ?? > > > > Hmm, good point. I'm sure there are several methods, but the first > which comes to mind is to do two replacements... >

Re: Adding ID numbers to names

2006-03-02 Thread Ash Varma
g replaced when the $i for "J Smith" comes around. > > $randomtext =~ s/\b$name[$i]\b/$name[$i] $id[$i]/g > Thanks.. Any hint on the J Smith and J Smith Thomas ?? Ash -- Ash Varma [EMAIL PROTECTED] [EMAIL PROTECTED] The browser you can trust! Get Firefox and rediscover the web! http://www.getfirefox.com/

Re: Adding ID numbers to names

2006-03-02 Thread Ash Varma
On 3/3/06, Wagner, David --- Senior Programmer Analyst --- WGO < [EMAIL PROTECTED]> wrote: > > Ash Varma wrote: > > Hi.. > > > > I have 2 files of data.. > > > > File 1 = id,name > > > > eg: > > > > 0001, J Smith > > 0002, J

Adding ID numbers to names

2006-03-02 Thread Ash Varma
Smith 0001 and J Smithers with J Smithers 0002, etc... I cannot use: for ($i=0;$i<=$#id;$i++) { $randomtext =~ s/$name[$i]/$name[$i] $id[$i]/g } This does not give the desired result... Gives names with dual IDs, or incorrect IDs.. Any hints on how I can solve this.. Thanks Ash -- Ash Va

Re: Matching and general expressions

2004-01-18 Thread aSH
It works like charm Kenton! Thank you very much! :) aSH On Sunday, January 18, 2004, at 06:14 PM, Kenton Brede wrote: On Sun, Jan 18, 2004 at 05:22:46PM +0100, aSH ([EMAIL PROTECTED]) wrote: Hello, I'm trying to learn and use the patterns. This is my first "serious" try with

Matching and general expressions

2004-01-18 Thread aSH
need help with the code because I'm lost and I need to send my code. Thanks in advance. aSH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>