From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3c25b735ad2bcf69 X-Google-Attributes: gidfee84,public X-Google-Thread: 10259a,3c25b735ad2bcf69 X-Google-Attributes: gid10259a,public From: hansm@wsinti05.win.tue.nl (Hans Mulder) Subject: Re: Getopts Problem on OSF/1 Date: 1995/07/10 Message-ID: <3trfqe$h0@wsinti05.win.tue.nl>#1/1 X-Deja-AN: 106000931 references: <3tep2f$6bk@cheetah.net-works.net> <3tgp2k$p02@ftp.univie.ac.at> organization: Eindhoven University of Technology, The Netherlands reply-to: hansm@win.tue.nl newsgroups: comp.lang.perl,comp.unix.osf.osf1 In hippo@garply.com (Hugh Messenger) writes: >In article <3tgp2k$p02@ftp.univie.ac.at>, pm@katz.cc.univie.ac.at (Peter >Marksteiner) wrote: >> Daniel Anderson (andersdc@net-works.net) wrote: >> : I am having a problem with Getopts running perl5 on a DEC Alpha >> : with OSF/1. The script core dumps in the Getopts routine... >> I'm not sure I have a solution, but definitely I had the same problem. >> I traced it to the "eval"-statements in the Getopts routine. The perl 5 >> version of eval behaves rather differently from its perl 4 predecessor, but >> I don't know what the differences are - except that perl 5 eval on OSF/1 >> sometimes dumps core. >Strange. I use Getopts heavily in my Alpha/OSF perl 5.000, never had a problem. >I'm about to upgrade to 5.001 ... maybe Getopts will cease working ... :) It will. There is a serious bug in straight 5.001 and it's most visible effect is to dump core in the Getopts routine. Use 5.001a or later if you want ot use Getopts. Versions prior to 5.001m have problems returning arrays from subs. On the other hand, versions later than 5.001e tends to dump core if you increment an undefined element in a tied hash (e.g. a DBM file). -- Hope this helps, HansM