This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
David,
> To: <address@hidden>
> From: "David Wojtowicz" <address@hidden>
> Subject: Re: 20021206: A problem with ldm starting
> Organization: UCAR/Unidata
The above message contained the following:
> Re the problem with "split loop" errors. I just ran into this on a new
> install of LDM 6.0.2. on an RH8.0 machine (previous installs are on 7.2
> machines)
>
>
> > ( @QUEUES ) = split( "[ \t\n]+", `ls $pq_path` );
> > if($#QUEUES==-1) {
>
> I didn't see a resolution in the archives. In the two places it is used in
> ldmadmin it seems that the only purpose is to check for the existance of the
> pq file. Wouldn't it be more efficient (than spawning a ls process) and
> avoid the mysterious split loop error to just use a file test:
>
> if(! -f $pq_path) {
> # so something
> }
>
> Just a suggestion. That's how I patched mine and it works fine.
I'm not a perl expert and I didn't write the ldmadmin script (although I
now maintain it) so thank you very much for sending this in.
It'll be in the next release.
> David Wojtowicz, Sr. Research Programmer
> Department of Atmospheric Sciences Computer Services
> address@hidden (217) 333-8390
Regards,
Steve Emmerson