On Thu, Apr 24, 2003 at 01:40:54PM -0400, Mark Jason Dominus wrote: > mike@stok.co.uk: > > > > my $rv = ('a', 'b', 'c'); > > > > show $rv; > > > > my $rv2 = ('a', 'b', 'c', ()); > > > > show $rv2; > > > > > > > > I would have expected $rv2 to be 'c' as I thought ('a', 'b', > > > > 'c', ()) should be flattened to ('a', 'b', 'c'). The warnings > > > > indicate that in the first case two values are useless, and in > > > > the second three values are useless. > > I'm with Mike on this. > > my $rv2 = ('a', 'b', 'c', ()); > my $rv2 = ('a', 'b', 'c', ); > > These two should not be different. Should these be different? my $rv2 = ('a', 'b', 'c', f()); my $rv2 = ('a', 'b', 'c', ); sub f { () } If so, why should the inline expression behave differently from the function call? -- Rick Delaney rick.delaney@rogers.comThread Previous | Thread Next