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.
On Tue, 10 Sep 2002, Unidata Support wrote: > > ------- Forwarded Message > > >From: "Kevin Schrab" <address@hidden> > >Subject: ldm and perl > >Organization: NOAA > >Keywords: 200209101440.g8AEel120730 LDM Perl > > Is there an ldm still available that works with perl4? Kevin, No, but you can change the current one to run on perl 4. For all the perl scripts, ie ldmadmin, ldmcheck, etc all one has to do is prefix all function calls with the "&" char. To find the places, just run the script: % ldmadmin ps syntax error in file ldmadmin at line 179, next 2 tokens "print_usage(" syntax error in file ldmadmin at line 185, next 2 tokens "start_ldm(" syntax error in file ldmadmin at line 188, next 2 tokens "stop_ldm(" syntax error in file ldmadmin at line 192, next 2 tokens "bad_exit(" syntax error in file ldmadmin at line 196, next 2 tokens "make_pq(" syntax error in file ldmadmin at line 199, next 2 tokens "delete_pq(" syntax error in file ldmadmin at line 202, next 2 tokens "make_surf_pq(" syntax error in file ldmadmin at line 205, next 2 tokens "del_surf_pq(" syntax error in file ldmadmin at line 208, next 2 tokens "make_lockfile(" syntax error in file ldmadmin at line 209, next 2 tokens "new_log(" So on line 179 replace "print_usage" with "&print_usage". You will have to do it for all the function calls in the script. I believe that will do the conversion. That's the best solution at this time. Robb... > > Thanks, > Kevin > > ------- End of Forwarded Message > > =============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================