vbruno has asked for the wisdom of the Perl Monks concerning the following question:
I do not want to wait for sub2 to finish on a switch name before moving on to sub1 on the next switch name. I do not care about a return value from sub2.#! /usr/local/bin/perl use Mod1; use Mod2; my @nodes = ("switch1", "switch2", "switch3", "switch4", "switch5"); foreach my $node_name (@nodes) { # a 4-10 minute TL1 conversation using Expect my $port_hashref = Mod1->sub1($node_name); # a five minute series of SQL queries using DBI Mod2->sub2($node_name, $port_hashref); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Forking sub inside a module
by JavaFan (Canon) on Jun 15, 2009 at 16:03 UTC | |
by vbruno (Novice) on Jun 15, 2009 at 16:18 UTC | |
by ikegami (Patriarch) on Jun 15, 2009 at 18:00 UTC | |
by FloydATC (Deacon) on Jun 16, 2009 at 07:38 UTC | |
by admiral_grinder (Pilgrim) on Jun 16, 2009 at 13:20 UTC | |
| |
|
Re: Forking sub inside a module
by John M. Dlugosz (Monsignor) on Jun 15, 2009 at 17:48 UTC |