On Mon, Jun 14, 2010 at 22:35, Mark Fowler <[email protected]> wrote: > On Tue, Jun 15, 2010 at 12:16 AM, Paul Makepeace <[email protected]> wrote: > >> use List::Util 'max'; >> my $length = max(@csv_fields, @import_fields); > > ITYM > > use List::Util 'max'; > my $length = max(scalar @csv_fields, scalar @import_fields);
Yeah, thanks; I thought that looked wrong! BTW, $length is a misleading name if $#foo is used. $#foo is _not_ the length. P > > Mark. > _______________________________________________ > BristolBathPM mailing list > [email protected] > http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm > _______________________________________________ BristolBathPM mailing list [email protected] http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm
