- Original Message -
From: "Ahmed Moustafa"
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 14, 2002 2:40 AM
Subject: How can a sub return true or value?
> I use " " for true and "" for false. Is there a more standard (or
> readable) values for true and false?
>
> Thanks in advance.
>
Typi
On Sunday 14 April 2002 00:40, you wrote:
> I use " " for true and "" for false. Is there a more standard (or
> readable) values for true and false?
>
> Thanks in advance.
You could use 0 as false and 1 (or another non-zero value) as true.
Steven
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
Ahmed Moustafa wrote:
> I use " " for true and "" for false. Is there a more standard (or
> readable) values for true and false?
>
> Thanks in advance.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I use " " for true and "" for false. Is there a more standard (or
readable) values for true and false?
Thanks in advance.
--
Ahmed Moustafa
http://pobox.com/~amoustafa
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Jeff 'Japhy' Pinyan wrote:
> The default scope for ALL variables is to the package they belong to. If
> you declare a variable with 'my', or give it a fully qualified package
> name (like $Foo::x), then the default is not the case.
I found the same for subroutines, right?
--
Ahmed Moustafa
http
On Saturday, April 13, 2002, at 04:45 , Ahmed Moustafa wrote:
> Elaine -Hfb- Ashton wrote:
>> I always found the local, my, our mess pretty confusing and the best
>> explanation is MJD's "Coping with Scoping"
>> http://perl.plover.com/FAQs/Namespaces.html
>> Make good note of the text in red :)
Elaine -Hfb- Ashton wrote:
> I always found the local, my, our mess pretty confusing and the best
> explanation is MJD's "Coping with Scoping"
>
> http://perl.plover.com/FAQs/Namespaces.html
>
> Make good note of the text in red :)
Elaine, thanks a lot for MJD's article. There is a great differ
> I have a module name Mail::Mboxparser and I tried to install this module and
> it says that it needs Mail::Mimetools module. I need to know that to install
> Mail::Mboxparser, I just need .pm file of Mail::Mimetools or have to install
> Mail::Mimetools.
If it needs it, you have to install it.
I found it ... never mind! :)
open (GWFILE, "brian");
for (;;)
{
for ($curpos = tell(GWFILE); ; $curpos = tell(GWFILE))
{
print $_;
# search for some stuff and put it into files
}
# sleep for a while
seek(GWFILE, $curpos, 0); # seek to where we had been
}
Amazing what happens when one finds whe
I have a module name Mail::Mboxparser and I tried to install this module and
it says that it needs Mail::Mimetools module. I need to know that to install
Mail::Mboxparser, I just need .pm file of Mail::Mimetools or have to install
Mail::Mimetools.
If someone can shed some light on this, I will be
I am starting to work on a script that is going to take my RADIUS Detail file, and
dump it into a mySQL database.
I can get it to run once and hour or anytime via cron, but I want something real-time,
that would be pretty much always running as a process / server.
Using the "open (myFile, "det
> >>Is use POSIX ":sys_wait_h"; portable?
> >>
> >
> > It is on systems that support it.
>
> It looks like it won't on the Windows systems, right?
E:\Shared\Perl\bin>perl -e "use POSIX ':sys_wait_h';print &WNOHANG"
1
E:\Shared\Perl\bin>
Seems portable enough (ActiveState Perl) ;-) Mind you, i
To me, this is a surprisingly tough question to answer. I'd say that the primary use
of mod_perl is to speed up your pages via Apache::Registry, Apache::PerlRun or your
own handlers. However, it's much more than that. 2 keys for me both personally and
professionally are:
1) It allows you to do dy
Paul Johnson wrote:
>>Is use POSIX ":sys_wait_h"; portable?
>>
>
> It is on systems that support it.
It looks like it won't on the Windows systems, right?
>
>>>What does it mean when $pid is -1?
>>>
>
> It means wait for any child process.
Then, the pid's of the child processes don't need to
On Friday, April 12, 2002, at 05:27 , John W. Krahn wrote:
> "Tirthankar C. Patnaik" wrote:
>> Could you give a good reference to this things, IPC, pipes, fifo,
>> sockets,
>> etc? I could not make much headway, from what I read in the man pages,
>> and
>> perldoc.
>
>
> The best references fo
On Fri, 12 Apr 2002, Green, Chris wrote:
> use FILE::BASENAME
>
> $record = "D:\\data\\filename.bat";
>
> ($name,$path,$suffix) = fileparse($record,@suffixlist);
> $basename = basename($record,@suffixlist);
> $dirname = dirname($record);
Chris:
1. Put a semi-colon after the use sta
On Sat, Apr 13, 2002 at 01:52:16PM +0200, Paul Johnson wrote:
> On Fri, Apr 12, 2002 at 07:01:15PM -0700, Ahmed Moustafa wrote:
> > Ahmed Moustafa wrote:
> > >
> > > waitpid $pid,&WNOHANG;
> > >
> > >
> > > What is the value of the flag WNOHANG in waitpid?
> > > What does it mean when $pid is -
On Fri, Apr 12, 2002 at 07:01:15PM -0700, Ahmed Moustafa wrote:
> I found it in . It was 0x0001.
>
> Is use POSIX ":sys_wait_h"; portable?
It is on systems that support it.
perldoc perlipc
> Ahmed Moustafa wrote:
> >
> > waitpid $pid,&WNOHANG;
> >
> >
> > What is the value of the flag
18 matches
Mail list logo