NateTut has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/ksh Count=0 Limit=30 while [ $Count -lt $Limit ] ; do Count=$(($Count + 1)) sleep 1 echo $0 has Slept for \[$Count\] Seconds so Far... done
#!/usr/bin/perl use strict; use warnings; my @Types = ('A', 'B'); my %ScriptName; my %IsFinished; my %ProcesseHandle; foreach my $Type (@Types) { $ScriptName{$Type} = $Type . '.ksh'; $IsFinished{$Type} = 0; if(!open($ProcesseHandle{$Type}, "$ScriptName{$Type}|")) { WarnLog("Unable to run Script:[$ScriptName{$Type}]:\n$^E:\n$!:\n +Error Number $?:$@ "); } } while(!$IsFinished{'A'} or !$IsFinished{'B'}) { my %Line; foreach my $Type (@Types) { if(!$IsFinished{$Type}) { $Line{$Type} = <$ProcesseHandle{$Type}>; if(!defined($Line{$Type})) { $IsFinished{$Type} = 1; } print("\[$Type\]\[$Line{$Type}\]\n"); } } }
[A][GLOB(0x2ae38)] Use of uninitialized value in concatenation (.) or string at HashPipe. +pl line 33. [B][] [A][GLOB(0x2ae38)] Use of uninitialized value in concatenation (.) or string at HashPipe. +pl line 33. [A][]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Hash Pipe Problem
by Roy Johnson (Monsignor) on Feb 26, 2009 at 19:29 UTC | |
|
Re: Hash Pipe Problem
by BrowserUk (Patriarch) on Feb 26, 2009 at 19:53 UTC | |
by ikegami (Patriarch) on Feb 26, 2009 at 20:23 UTC | |
by BrowserUk (Patriarch) on Feb 26, 2009 at 20:41 UTC | |
by ikegami (Patriarch) on Feb 26, 2009 at 20:44 UTC | |
|
Re: Hash Pipe Problem
by GrandFather (Saint) on Feb 26, 2009 at 20:08 UTC | |
by NateTut (Deacon) on Feb 26, 2009 at 20:24 UTC | |
|
Re: Hash Pipe Problem
by Anonymous Monk on Feb 26, 2009 at 19:24 UTC | |
by NateTut (Deacon) on Feb 26, 2009 at 19:31 UTC | |
by Anonymous Monk on Feb 26, 2009 at 19:35 UTC | |
by NateTut (Deacon) on Feb 26, 2009 at 19:38 UTC | |
by almut (Canon) on Feb 26, 2009 at 19:45 UTC | |
| |
by Anonymous Monk on Feb 26, 2009 at 19:51 UTC | |
| |
|
Re: Hash Pipe Problem
by Anonymous Monk on Jan 05, 2015 at 07:02 UTC |