Snigwel has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be much appreciated :ロ]#%executables is a hash of hashes, keyed by the executable name, and w +ithin that hash by names corresponding to the xml file - flag, versio +n, etc. #$exName is the name of the executable being dealt with in the curren +t loop iteration. open (PULLINFO, "$exName $executables{$exName}{'flag'} |") or die("bla +sted cutthroats... can't they refrain from \"$! \"-ing?"); my @versInfo = <PULLINFO>; close PULLINFO; unless($versInfo[$executables{$exName}{"opLine"}]=~ /((?:\d+)(?:\. +\d+)+)/ and $executables{$exName}{"version"}= $1) { FINDFO:foreach (@versInfo) { if(/((?:\d+)(?:\.\d+)+)/){$executables{$exName}{"version"} + = $1;last FINDFO;} } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: version retrieval difficulties
by shandor (Monk) on Apr 12, 2007 at 20:05 UTC | |
by Snigwel (Sexton) on Apr 12, 2007 at 20:12 UTC | |
by naikonta (Curate) on Apr 13, 2007 at 04:56 UTC | |
by shandor (Monk) on Apr 13, 2007 at 15:08 UTC | |
|
Re: version retrieval difficulties
by Snigwel (Sexton) on Apr 17, 2007 at 17:53 UTC |