I am trying to re-exec my script after a delay. I expect that the code
below would go on re-execing indefinitely, however that does not
happen. It exits after one reexec. What should be done to make the
code re-exec forever?
$ cat exec.pl
#!/usr/bin/perl -w
use strict;
alarm(5);
$SIG{"ALRM"} = sub
On 10/03/2016 06:17 PM, khalil zakaria Zemmoura wrote:
Hi,
I am reading modern Perl and despite the explanation of the author I
couldn't understand:
my $count = () = get_clown_hats()
It's obvious to me that the function get_clown_hat() is evaluated in
list context but what the author said is th
So, list assignment is
my ($foo, $bar, $baz) = ("a", "b", "c");
$foo will be "a", $bar will be "b", etc. There can be more items on the
right hand side and they won't be copied. This operation has a return
value. In list context it is the list of values that got assigned. In
scalar context it is
Hi,
I am reading modern Perl and despite the explanation of the author I
couldn't understand:
my $count = () = get_clown_hats()
It's obvious to me that the function get_clown_hat() is evaluated in list
context but what the author said is that
the assignment to the empty list throws away all of th
On Mon, 3 Oct 2016 16:25:22 -0400
Uri Guttman wrote:
> > $text ="
> use here documents for long multiline strings like that. it is hard
> to find a close quote after so many lines.
You can also use the qq operator
$text = qq{
...
};
If your editor have matching-brace abilities, you can use t
On 10/03/2016 06:51 AM, Mike Martin wrote:
Hi
I have the below script (extracted pertinent bits).
The connection to the mail server times out if there is more than
about 10 lines of text (sometimes less)
i can't debug your email problem but there are several things you can do
to help yourself
Hi
I have the below script (extracted pertinent bits).
The connection to the mail server times out if there is more than
about 10 lines of text (sometimes less)
There is no issue with how many attachments I can send, so getting a bit stumped
Example below with specimen text (anonymised)
The bod