Gary Stainburn <[EMAIL PROTECTED]> wrote:
> unlink $file if -e $file;
>
> if (-e $file) {
> for($i = 0; $i < 10; $i++) {
> sleep(1);
> }
> unlink $file;
> }
>
> The if statement controls access to the block following it. The
> condition is only checked once, so the answer to the fi
Octavian Rasnita <[EMAIL PROTECTED]> wrote:
>
> If I want to run a code in background, do I need to fork another
> program, or it is possible to fork a subroutine from the same
> program that uses the fork function?
>
You can do whatever you want in the child.
defined (my $pid = fork)
o
NAME
beginners-faq - FAQ for the beginners-cgi 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 addre
Hi all,
I've tried to use the crypt function to crypt a string longer than 8
characters but only the first 8 characters are considered.
I have used (like an example):
my $string = "1234567890";
my $result = crypt($string, $string);
Then I verify with:
if ($result eq crypt($string, $result)) {
Hi Octavian ,
I'm afraid that's how crypt() (the UNIX function) is. Here's an extract
from man crypt:
By taking the lowest 7 bits of each of the first eight
characters of the key, a 56-bit key is obtained. This
56-bit key is used to encrypt repeatedly a constant string