Re: NOT in a regex?

2004-09-20 Thread John W. Krahn
Colm Gallagher wrote: Hi Folks, I'm trying to pull a use case description out of a text file (actually an MS Word doc, but I've already used Win32:OLE to pull the text). The converted text comes out something along the lines of Version Change Date Changed By Change Description 1 Date A.N. Other

Re: truncate word

2004-09-20 Thread John W. Krahn
Gunnar Hjalmarsson wrote: John W. Krahn wrote: [EMAIL PROTECTED] wrote: I have a file which contains a number of instances of the word "FINAL". I need to truncate all the instances of this word and create an output string of the rest of the words in the same line in the file. Rest all lines not con

NOT in a regex?

2004-09-20 Thread Colm Gallagher
Hi Folks, I'm trying to pull a use case description out of a text file (actually an MS Word doc, but I've already used Win32:OLE to pull the text). The converted text comes out something along the lines of Version Change Date Changed By Change Description 1 Date A.N. Other Initial Revision.

RE: Can't connect to PG

2004-09-20 Thread Adrian Muhrer
Hi I usually do something like... $pgdbh = DBI->connect("DBI:Pg:dbname=testdb;host=myhost", 'user', 'pass', {RaiseError => 0, PrintError => 0}) or die "Cannot connect to testdb\n"; Adrian -Original Message- From: Anish Kumar K. [mailto:[EMAIL PROTECTED] Sent: Tuesday, 21 Septembe

Can't connect to PG

2004-09-20 Thread Anish Kumar K.
Hi I couldn't connect to the database. Following message is coming. Please help me in this regard. use strict; use warnings; use DBI; my $dbh = DBI->connect('dbi:Pg:testdb','postgres','postgres') or die "Cannot connect to testdb\n"; exit; Output DBI->connect(testdb) failed: ERROR: Missing '

RE: Two easy questions.

2004-09-20 Thread Raymond Raj
Hi! "assoc " and "ftype" commands are used to associate extension for particular file types.. >Is there a way to run my script without specifying "Perl" before the script? In other words, I want to type c:\myscript.plx >instead of c:\perl myscript.plx. yes you can, try "assoc /?

Re: Two easy questions.

2004-09-20 Thread WilliamGunther
You appear to be on a Windows system. The file extensions on Windows are for association. Hence, to answer your second question first, if you're on ActiveState Perl, all .pl extensions are automatically associated with perl, if you did it right, and just typing 'foo.pl' in the shell should r

RE: Two easy questions.

2004-09-20 Thread Adrian Muhrer
Never heard of a .plx, but the .pl and .cgi are really just naming convention. Having said that if you are running activestate perl, it normally installs with .pl associated with perl (but not cgi). If you are running nt4 (2k?) or greater you should be able to run myscript.pl without putting perl

Two easy questions.

2004-09-20 Thread Drue Reeves
Truly newbie questions Why do some scripts have a CGI extension while other a .pl and still other a .plx? Does the .cgi extension give it some web characteristics? Is there a way to run my script without specifying "perl" before the script? In other words, I want to type c:\myscript.plx i

calling Perl Script from JSP?

2004-09-20 Thread Drue Reeves
Anyone know how to call a PERL Script from a JSP and pass parameters to the script? I have a JSP that will call PERL but, everytime we try to add a script nothing happens. Any ideas? Thanks, Drue

Re: truncate word

2004-09-20 Thread Gunnar Hjalmarsson
John W. Krahn wrote: [EMAIL PROTECTED] wrote: I have a file which contains a number of instances of the word "FINAL". I need to truncate all the instances of this word and create an output string of the rest of the words in the same line in the file. Rest all lines not containing the word are to be

Re: book question

2004-09-20 Thread Chris Devers
On Mon, 20 Sep 2004, Patricio Bruna V. wrote: > Im looking for a book about perl and network programming, any recommendation? Recommendations beyond spending five seconds on Amazon? :-) _Network Programming with Perl_ by Lincoln Stein is definitive. There are of course lots of others, but which

book question

2004-09-20 Thread Patricio Bruna V.
Im looking for a book about perl and network programming, any recommendation? -- Patricio Bruna Villarroel Ingeniero Linux Center S.A. Red Hat Certified Engineer Fono:(56-2) 274 5000  Fax:(56-2) 274 7075 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: truncate word

2004-09-20 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hi Hello, I have a file which contains a number of instances of the word "FINAL". I need to truncate all the instances of this word and create an output string of the rest of the words in the same line in the file. Rest all lines not containing the word are to be ignored. F

Re: truncate word

2004-09-20 Thread Jeff 'japhy' Pinyan
On Sep 20, [EMAIL PROTECTED] said: >I have a file which contains a number of instances of the word "FINAL". >I need to truncate all the instances of this word and create an output >string of the rest of the words in the same line in the file. Rest all >lines not containing the word are to be ignor

truncate word

2004-09-20 Thread mk76
Hi I have a file which contains a number of instances of the word "FINAL". I need to truncate all the instances of this word and create an output string of the rest of the words in the same line in the file. Rest all lines not containing the word are to be ignored. For this I have written a code a

Re: time function

2004-09-20 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I was wondering if I can get some help on this. I a function to which I pass the current time. Let's call it func. I call it as follows: $joe = func(time); Now how do I use "time" but add one minute to it? For instance since time will give me the current time, how do I tell

Re: time function

2004-09-20 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Greetings earthlings, Hello, I was wondering if I can get some help on this. I a function to which I pass the current time. Let's call it func. I call it as follows: $joe = func(time); Now how do I use "time" but add one minute to it? For instance since time will perl -e '

time function

2004-09-20 Thread [EMAIL PROTECTED]
Greetings earthlings, I was wondering if I can get some help on this. I a function to which I pass the current time. Let's call it func. I call it as follows: $joe = func(time); Now how do I use "time" but add one minute to it? For instance since time will give me the current time, how do I tell

Mime Lite attachments

2004-09-20 Thread DBSMITH
All, Was hoping for some advise b/c I cannot seem to get this to work. My problem is that it attaches the path name when I need to actual data attached. So my goal is as if it would be cat test |uuencode test | mailx -s test [EMAIL PROTECTED] thanks, my $scratchtps = "/usr/local/log/filenam

Script using too much memory

2004-09-20 Thread Kevin Old
Hello everyone, I have a script that loops through a directory of spreadsheets and one by one dumps their contents to a csv using the Spreadsheet::ParseExcel::Utility xls2csv. The only problem is that xls2csv is using extremely too much memory, as my biggest spreadsheet is 1.5 MB. When started,

perl.beginners Weekly list FAQ posting

2004-09-20 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):

problem with Net::DNS

2004-09-20 Thread Sergio Vergara Padilla
Hi list: i'm working with Net::DNS, and i have to recover the TXT resource record, but i don't know how to do it, in the documentation says that i have the "txtdata" method available but it didn't say where i have to apply it. have anyone an example code of this method?, do i have to create a

RE: entering text in perl/tk

2004-09-20 Thread Raymond Raj
Hi, go for any perl/tk manual, unfortunate I don't know more about perl/tk. once i had time to check that "widget" demos so only i mentioned that examples...anyway maybe some one else from this group can help! Raymond -Original Message- From: N, Guruguhan (GEAE, Foreign Nat

RE: entering text in perl/tk

2004-09-20 Thread N, Guruguhan \(GEAE, Foreign National, EACOE\)
Hi Raj, I don't have the Active State perl widget.bat. If I don't have this what else can be the option? Guruguhan -Original Message- From: Raymond Raj [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 5:59 PM To: N, Guruguhan (GEAE, Foreign National, EACOE); [EMAIL P

RE: entering text in perl/tk

2004-09-20 Thread Raymond Raj
Hi, did try widget.bat it's contain lot of example for perl/tk ..if you have Active State perl widget.bat comes with that version -Original Message- From: N, Guruguhan (GEAE, Foreign National, EACOE) [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 5:50 PM To: [EMAIL PROTE

entering text in perl/tk

2004-09-20 Thread N, Guruguhan \(GEAE, Foreign National, EACOE\)
Hi All, I would like to know what widget I should use in order to allow the user to enter the text ( may be several lines ) in it and store that entered text in a file in Perl/Tk? I tried with Text Widgets, but failed. Any help would be appreciated. TIA Guruguhan -- To unsubscribe,