At 14.48 -0500 1999.03.07, Brian L. Matthews wrote: >Consider: > >#!perl >$x = 'a,b,c,d,e,f'; >($a, undef, undef, $d, $e) = split /,/, $x; >print "$a-$d-$e\n"; > >What would you expect this to print? I expected: > >a-d-e > >and under perl5.004_04 on my ISP, that's what I get. However, under MacPerl >5.2.0r4, which I *thought* was 5.004_04, I get: > >a-d,e,f- Confirm problem here. Note that this works for me: #!perl $x = 'a,b,c,d,e,f'; ($a, undef, undef, $d, $e, $f, $g) = split /,/, $x; print "$a-$d-$e\n"; If I were to investigate further, I would look at the changelog for 5.004_0[1-4], since MacPerl is at 5.004, not 5.004_04. I would expect to see this as a fixed bug in one of the four maintenance revisions. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org