From: pm@katz.cc.univie.ac.at (Peter Marksteiner)
Subject: Re: Getopts Problem on OSF/1
Date: 1995/07/06 [thread overview]
Message-ID: <3tgp2k$p02@ftp.univie.ac.at> (raw)
In-Reply-To: 3tep2f$6bk@cheetah.net-works.net
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.
I implemented a brute-force workaround: I modified the Getopts routine
to produce an associative array $opt_{"h"}, $opt_{"v"}, ..., rather than
single variables $opt_h, $opt_v etc.; this can be done without an eval.
Of course, this requires analogous modifications of all programs
calling the Getopts routine.
--
Peter Marksteiner
Vienna University Computer Center
Universitaetsstrasse 7
A-1010 Vienna, Austria
e-mail: Peter.Marksteiner@univie.ac.at
Tel: (+43 1) 406 58 22 255
FAX: (+43 1) 406 58 22 170
next prev parent reply other threads:[~1995-07-06 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-05 4:00 Getopts Problem on OSF/1 Daniel Anderson
1995-07-06 4:00 ` Norbert Mikula
1995-07-06 4:00 ` Peter Marksteiner [this message]
1995-07-07 4:00 ` Hugh Messenger
1995-07-10 4:00 ` Hans Mulder
1995-07-10 4:00 ` Guenter Schmidt
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox