--- David Gilden <[EMAIL PROTECTED]> wrote:
> Is one style better then the other here?

> 
> sub print_table_rows {
> my $name = shift;
> my $key = shift;
> my $date = shift;

> --- alt----
> sub print_table_rows {
> my ($name,$key,$date) = @_[0..2]

I'd just say 

  my ($name,$key,$date) = @_;

That leaves them in @_ in case you decide to edit the code later and
wish they were still there, assigns them for use, and cuts out the
unecessary line-noise of the [0..2].

The more important issue, however, is: does it make sense to you?
When you come back to edit it in 6 months, will it make sense to you?


__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

Reply via email to