Trey Harris wrote: > > In a message dated Wed, 17 Apr 2002, Dave Storrs writes: > > sub load_data ( \$filename; $version; @_ ) { > > I think you can do exactly this with > sub load_data ( $filename is rw, $version, @_ ) { > > Yes? Or maybe > sub load_data ( $filename is rw, $version, *@_) { > > to make sure @_ gets flattened?
Exactly so. The first version expects a single array (or array ref) as its third argument; the second version expects a list (which it flattens, then slurps) as its third argument. Damian