How to repair Perl instalation on OBSD 3.3 stable?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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:
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! :)
"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
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
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
[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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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_
> "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.
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
"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
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/
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
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
28 matches
Mail list logo