At 20:31 Uhr -0800 09.11.1998, Stewart Leicester wrote: >PowerBook 520c, 7.6.1, Perl 5.2.0r4. As you can see from the "File >'<AppleEvent>'", I ran these from the "Run MacPerl Front" BBEdit tool menu. > >Can anyone help me explain this? > >TIA! -Stewart > >This program: > >--------------------------------- >#!/bin/perl -w > >use strict > >&DoInits(); > >print "pathSep=$pathSep\n"; >exit; > >sub DoInits { > $pathSep = ':'; >} #End of DoInits >-------------------------------- #!/bin/perl -w use strict; #<= use semicolon my $pathSep; #<= consider localizing variable or else have a look at strict.pm in Shuck &DoInits(); print "pathSep=$pathSep\n"; exit; sub DoInits { $pathSep = ':'; } #End of DoInits Similar for the others. You definitely need to RTFM. ;) __Peter Hartmann________ Ritsumeikan University, Kyoto, Japan e-mail: hartmann@mbox.kyoto-inet.or.jp (preferred) phv00542@askic.kic.ritsumei.ac.jp ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch