At 01:20 PM 06/25/01 -0400, Weidong Wang wrote:
>Tried it. No.
>
>Well, not exactly, as I am also using another perl module, SOAP, to send the
>data back. So it dos not help for me to close STDOUT before doing a return,
>as the data is sent back after my code returns by the SOAP module.
What happ
In answer to one question: I use Textpad.com 's shareware
editor to capture output from perldoc, and I can then use
it to search whatever came back, save it, edit it, etc.
In answer to the other pont: perlre.
Lee
---
Obligatory perl schmutter .sig:
perl -e "print rand > 0.5 ? q/\\/ : q\/\ while
>
> > What I really wanted to do was to fork a new process to run another
daemon
> > (which waits for connection, and does not exit). The parent "process"
prints
> > out a line and just exit. But on win32, the program does not
> > exit. The new daemon does start though.
>
> I see. You will have to
I'm not sure about the perl doc question, sorry.
Try this for the first occurence thing though:
###
$value = "any old value";
while ($bool = ($value =~ /a/g))
{
if ($bool)
{last;}
}
print pos $value;
###
Of course there is probably a simpler, more efficient way to do i
:
:
: Hi,
: How to find the position of the first occurrence of a pattern
: in a string.
I believe you're looking for the index function.
: I could not find any function in the perl doc.
Did you check the perlfunc manpage?
:
: Is there any simple way to get all the string fun
Hi,
How to find the position of the first occurrence of a pattern in a string.
I could not find any function in the perl doc.
Is there any simple way to get all the string function in perl doc.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Shawn
Sen
Tried it. No.
Well, not exactly, as I am also using another perl module, SOAP, to send the
data back. So it dos not help for me to close STDOUT before doing a return,
as the data is sent back after my code returns by the SOAP module.
Weidong
- Original Message -
From: "Bill Moseley" <[E
At 12:36 PM 06/25/01 -0400, Dr. Weidong Wang wrote:
>This is a problem as my perl program is called from web server. In certain
>case, I fork a new daemon. But if the daemon does not exit, the perl program
>does not exit. No data is sent back to the browser.
Does it help to close STDOUT?
Bill
> Thanks for the reply.
>
> Since fork() for win32 is really emulated with threads, I suppose it is true
> that unless both parent and child "processes" exit, the program will not
> finish?
Right.
> What I really wanted to do was to fork a new process to run another daemon
> (which waits for co
Thanks for the reply.
Since fork() for win32 is really emulated with threads, I suppose it is true
that unless both parent and child "processes" exit, the program will not
finish?
What I really wanted to do was to fork a new process to run another daemon
(which waits for connection, and does not
Thank you, I'll have a look.
> -Original Message-
> From: Jenda Krynicky [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 25. Juni 2001 18:57
> To: [EMAIL PROTECTED]
> Subject: Re: DLL-Access under Windows
>
>
> > as a Perl-Newbie I wounder wehter there exsist a Modul
> which helps me to
> >
Maybe sily question, but have you seen the
perldoc -f localtime
perldoc -f time
?
I believe there is POSIX support, but maybe in a module
from search.cpan.org.
Lee
---
Obligatory perl schmutter .sig:
perl -e "print rand > 0.5 ? q/\\/ : q\/\ while 1"
> -Original Message-
> From: [EMAIL
> how about
>
> my $Time = (time);
scalar time
> # epoch seconds
> or
>
> my $Time = localtime();
scalar localtime
> # real world time
>
> Shawn
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Chunbo
> > Shao
> > Sent: Monday, June
how about
my $Time = (time);
# epoch seconds
or
my $Time = localtime();
# real world time
Shawn
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Chunbo
> Shao
> Sent: Monday, June 25, 2001 8:57 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Sub
How can i get time/timezone in perl on Winnt?
On unix, i use "use POSIX qw(strftime); $zone = strftime "%Z",
localtime;", and it works well. But this does not work under Winnt
because of POSIX.
Please help, thanks
Chunbo
___
ActivePerl mailing list
[E
> as a Perl-Newbie I wounder wehter there exsist a Modul which helps me to
> access ALL the DLL's in my System.
>
> I have a Custom-dll which I need to use, but do not want to learn VB for it.
If it is an OLE/COM object you use Win32::OLE,
if it's an ordinary DLL you use either Win32::API or FFI
Hello List,
as a Perl-Newbie I wounder wehter there exsist a Modul which helps me to
access ALL the DLL's in my System.
I have a Custom-dll which I need to use, but do not want to learn VB for it.
Any sugestions ?
Thank you
Franziskus
___
A
17 matches
Mail list logo