At 11:48 -0800 7/3/99, Brian L. Matthews spoke thusly: >#!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- > >Comments, confirmations? Yep. If you replace undef with $junk you get what you expected. Cheers ... Chris ====================================================================== Chris Sansom - Highway 57 - Designs for the World Wide Web | chris@highway57.co.uk http://www.highway57.co.uk | ====================================================================== ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org