reinstall PERL

2003-08-22 Thread Bulba007
How to repair Perl instalation on OBSD 3.3 stable? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Changing case of the first letter of words in string

2003-08-22 Thread James Edward Gray II
On Friday, August 22, 2003, at 05:06 PM, bis wrote: Thanks Gabriel - your suggested code s/(SCTN:\s*)(\w+)/$1\u$2\E/g; is an improvement - it does capitalise the first letter - but only of the first word after "SCTN: " so i get something like SCTN: This is a section name What I need is SCTN:

Re: Changing case of the first letter of words in string

2003-08-22 Thread bis
Thanks Gabriel - your suggested code s/(SCTN:\s*)(\w+)/$1\u$2\E/g; is an improvement - it does capitalise the first letter - but only of the first word after "SCTN: " so i get something like SCTN: This is a section name What I need is SCTN: This Is A Section Name hope that makes sense! :)

Re: Parlsax parsing problem

2003-08-22 Thread Todd W.
"Kurt Klinner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > while trying to parse a "large" XML document i found a > strange behaviour of the Parser Module(s) (XML::Parser:PerlSAX, > XML::Parser, XML::Parser::Expat > > If my file XML file is larger then 65536 bytes > th

Re: Read dir / sort

2003-08-22 Thread John W. Krahn
Paul Kraus wrote: > > I have a program that would read a directory and then do some renaming. > Up until recently it always seem to read by oldest file first to newest. > Which is great because my renaming involves incrementing a counter and > placing that count in each file. So if the order was c

RE: Read dir / sort

2003-08-22 Thread Bob Showalter
Paul Kraus wrote: > WTF now its working with no changes to the program.. > This is very frustrating. > Is perl some how looking at the way the directory was last > sorted in my > Ms window even though its pulling it from a UNIX server? Perl isn't doing anything but calling the OS's underlying

Re: trouble with math... driving me nuts.

2003-08-22 Thread zsdc
[EMAIL PROTECTED] wrote: >>#!/usr/bin/perl -wl >>use Math::BigFloat; >>$x = 37.75; >>print $x - 33.67 - 4.08; >>$x = Math::BigFloat->new('37.75'); >>print $x - 33.67 - 4.08; This seems to work, although there are some odd line returns You mean the automatic "\n" with every

Re: Changing case of the first letter of words in string

2003-08-22 Thread John W. Krahn
Bis wrote: > > I want to make the case of the first letter of all the words in a > selected string to upper case. The code > > s/\b(\w+)/\u$1\E/g; > > enables me to do this for the whole document. > > But the string I want to match and operate on is all instances of > text following the string

Re: Changing case of the first letter of words in string

2003-08-22 Thread David K. Wall
Bis <[EMAIL PROTECTED]> wrote: I want to make the case of the first letter of all the words in a selected string to upper case. The code s/\b(\w+)/\u$1\E/g; enables me to do this for the whole document. But the string I want to match and operate on is all instances of text following the string SC

RE: Read dir / sort

2003-08-22 Thread Ed Christian
Paul Kraus wrote: > Ok tested that theory and it is exactly what it is doing. That is not > a good thing. How can I force it to read the directory based on file > date instead of the way windows last sorted it. That does not seem > right to me that it would function like this. > > foreach ( readdi

Re: Changing case of the first letter of words in string

2003-08-22 Thread Gabriel Cooper
Bis wrote: I want to make the case of the first letter of all the words in a selected string to upper case. The code s/\b(\w+)/\u$1\E/g; enables me to do this for the whole document. But the string I want to match and operate on is all instances of text following the string SCTN: as in SCTN: N

RE: Read dir / sort

2003-08-22 Thread Paul Kraus
Ok tested that theory and it is exactly what it is doing. That is not a good thing. How can I force it to read the directory based on file date instead of the way windows last sorted it. That does not seem right to me that it would function like this. -Original Message- From: Paul Kraus [m

RE: Read dir / sort

2003-08-22 Thread Paul Kraus
WTF now its working with no changes to the program.. This is very frustrating. Is perl some how looking at the way the directory was last sorted in my Ms window even though its pulling it from a UNIX server? -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Friday, A

Read dir / sort

2003-08-22 Thread Paul Kraus
I have a program that would read a directory and then do some renaming. Up until recently it always seem to read by oldest file first to newest. Which is great because my renaming involves incrementing a counter and placing that count in each file. So if the order was changed the program will break

RE: trouble with math... driving me nuts.

2003-08-22 Thread Peter_Farrar
True, it's not a Perl issue (I've been able to duplicate the problem in C, and Scheme), but I'm looking for a Perl solution. Math::BigFloat seems to work well enough. Thanks, Peter |-+> | | "Levon Barker" | | | <[EMAIL

Re: trouble with math... driving me nuts.

2003-08-22 Thread Peter_Farrar
This seems to work, although there are some odd line returns and '0' is being returned as '0.' Still, I can work around that, THANKS! |-+> | | zsdc <[EMAIL PROTECTED]>| | || | | 08/21/200

Re: Trying to open a word document on the shell

2003-08-22 Thread zsdc
Hmmm... How did you send your message to [EMAIL PROTECTED] My answer was bounced... Anyway, I'm sending it once again, this time to [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: > system("$filename john.doc"); > But it says it cannot find the $filename path > the $filename form is "C:/Program File

Re: how do I "file lock" for a form?

2003-08-22 Thread Rich Parker
Hi. When a user hits "submit" many times after completeing a form, I get multiple (duplicate) entries in my spreadsheet. I've read that I can add a hidden field with a unique identifier to "lock the file" so this won't happen. I don't know how to do this - can anyone explain/direct me to a good inf

RE: About Shift

2003-08-22 Thread Paul Kraus
Yes because your not shifting any values just a memory address. Here this might help --- When you do your sub call mysub ($myvar, $myvar2) An array is created in your subroutine that holds both those values. It is called @_. So in the sub @_ holds ($myvar, $myvar2), So $_[0] = $myvar.

how do I "file lock" for a form?

2003-08-22 Thread Gregg O'Donnell
Hi. When a user hits "submit" many times after completeing a form, I get multiple (duplicate) entries in my spreadsheet. I've read that I can add a hidden field with a unique identifier to "lock the file" so this won't happen. I don't know how to do this - can anyone explain/direct me to a good

RE: only first checked item passed

2003-08-22 Thread Bob Showalter
Prachi Shah wrote: > Hi all, > > I have a CGI script which does a select on a database and > builds a checkbox > group iterating through the result of the select. The problem > is when a user > submits the form, only the first checked item in the checkbox > group is > passed. How do you know only

Re: only first checked item passed

2003-08-22 Thread Prachi Shah
So, any other ideas? Original Message Follows From: [EMAIL PROTECTED] (Randal L. Schwartz) To: [EMAIL PROTECTED] Subject: Re: only first checked item passed Date: 22 Aug 2003 07:12:24 -0700 > "Nyimi" == Nyimi Jose <[EMAIL PROTECTED]> writes: Nyimi> Try Nyimi> (@rows)=$sth->fetchrow_

Re: only first checked item passed

2003-08-22 Thread Randal L. Schwartz
> "Nyimi" == Nyimi Jose <[EMAIL PROTECTED]> writes: Nyimi> Try Nyimi> (@rows)=$sth->fetchrow_array; Nyimi> Not Nyimi> @rows=$sth->fetchrow_array; Doesn't make a bit of difference. Useless parens there. Makes a difference only in: ($foo) = .. vs $foo = .. -- Randal L.

Changing case of the first letter of words in string

2003-08-22 Thread Bis
I want to make the case of the first letter of all the words in a selected string to upper case. The code s/\b(\w+)/\u$1\E/g; enables me to do this for the whole document. But the string I want to match and operate on is all instances of text following the string SCTN: as in SCTN: News Anal

Re: Parlsax parsing problem

2003-08-22 Thread Rob Anderson
"Kurt Klinner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > while trying to parse a "large" XML document i found a > strange behaviour of the Parser Module(s) (XML::Parser:PerlSAX, > XML::Parser, XML::Parser::Expat > > If my file XML file is larger then 65536 bytes > th

Trying to open a word document on the shell

2003-08-22 Thread sc00170
I am trying to open a document as below #!/usr/local/bin/perl -w use Tk; my $mw = new MainWindow(); my $filename=$mw->getOpenFile(-filetypes=>[['WinWord','winword.exe']]); system("$filename john.doc"); But it says it cannot find the $filename path the $filename form is "C:/Program Files/

RE: only first checked item passed

2003-08-22 Thread NYIMI Jose (BMB)
Try (@rows)=$sth->fetchrow_array; Not @rows=$sth->fetchrow_array; José. -Original Message- From: Prachi Shah [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 11:06 PM To: [EMAIL PROTECTED] Subject: only first checked item passed Hi all, I have a CGI script which does a selec

Parlsax parsing problem

2003-08-22 Thread Kurt Klinner
Hello, while trying to parse a "large" XML document i found a strange behaviour of the Parser Module(s) (XML::Parser:PerlSAX, XML::Parser, XML::Parser::Expat If my file XML file is larger then 65536 bytes the actual character string is interrupted and a whitespace is added. For Example