Exist some function to eliminate repeated elements of an Array ???
Example @array = ('a','b','a','x','x','b','c')
after function(\@array)
@array = ('a','b','x','c')
Thanks
Hello, I have this problem:
I run a Perl program that creates a lot of children processes
(with fork) and finishes when all the children have finshed their job
(Each one of the children processes performs a task and then finishes).
Sometimes the processes
that are created with the fork finish...
Hello !
I have a perl program called myPerlProgram.
I want pass a parameter myParameter (scalar) to it as:
comandLine> myPerlProgram myParameter <Enter>
What code must I include in myPerlProgram to catch myParameter into the program?
How I do it??
Thanks !
Hi !
1: $DBI::errstr is null
2. Yes
I do can make inserts before this one. in fact, a lot of processes
that are copies of this one, (created with "forks") are making
insertions successfully.
The problematic code is as follows:
if (defined @pointerToARegistros) {
foreach...
I have this problem:
The next message appears when I try to make an INSERT into a table:
Connection refused
DBD::Pg::st execute failed: ERROR:
parser: parse error at or near "refused"
The situation is the next: I have a lot of processes making insertions
in the same database, and...
Hello Mike:
I solved my problem
The best solution is on :
http://www.digiweb.fr/Support/Manuel/PERL/fork.html
Ingenious ¿truth?
Thank you , ....regards
Hello Mike :
I would like to avoid using wait, because i dont want that the father waits for every child to finish, because i am launching *many* children, and i want them to run *all* concurrently
Thank you very much.
I am having this problem:
I have Perl script that uses a “for” to launch many processes children using “fork”, the problem is that: the children are left zombies, and therefore arrives at a point in which we cannot create more processes .
We thank for any aid that can give us. Our code is...
Hi Mike I'm going to cosidere your example, but I want
show you my case before to leave Net::Ping module.
$host = 'www.host.com'
$p = Net::Ping->new("tcp");
print "$host is alive.\n" if $p->ping($host);
$p->close();
it work fine
I do:
$host = '164.73.155.20'
$p =...
I can't run the command as root, but I can call the linux ping directly . How do it?
You know what parameter $host must be ?
On "tcp" mode
if i do $host = 'www.ntlworld.com' it work fine, but
if i do $host = '164.73.100.5' or $host = 164.73.100.5 don't work
I'm waiting you help...
Mike:
I need root permision for execute with 'icmp' and not have this.
What is strict?
Thanks for you help I'm going to vote for you.
Excuse my English I´m Spanish speaker.
How to use Net::Ping module??
I do :
use Net::Ping
$p = Net::Ping->new("tcp");
print "$host is alive.\n" if $p->ping($host);
$p->close();
with a reacheable $host and not print "$host is alive"
in a Linux S.O.
What must be $host?
$host = 126.73.100.100 or $host =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.