Path: utzoo!attcan!uunet!samsung!usc!ucsd!ucbvax!hplabs!hplabsz!thompson From: thompson@hplabsz.HPL.HP.COM (Brent Thompson) Newsgroups: comp.lang.perl Subject: simple debugger help wanted Summary: $[ different in debugger from in script Message-ID: <5946@hplabsz.HPL.HP.COM> Date: 18 Sep 90 23:56:26 GMT Reply-To: thompson@hplabs.hpl.hp.com (Brent Thompson) Organization: Hewlett-Packard Laboratories Lines: 19 I can't get the debugger (pl18, if that matters) to behave nicely. I am just trying to verify that my arrays are setup as expected, but $[ is set differently for the executing script from what I see in the debugger and this is error-provoking and aggravating. Very near the beginning my perl script does $[ = 1; # a holdover from the days of awk But when I run the thing as 'perl -d', every time I ask what is $[, it is 0. Imbedded 'print $[;' always shows 1, as expected. If I manually set $[=1, everything is ok until the next record, when $[ has reverted back to 0 (of course this is only the one I see from the debugger, not the one the script is working with). What's happening? -- Brent Thompson HP Labs, 1501 Page Mill Road, Bldg. 1U, Palo Alto, CA 94304