[Omaha.pm] @_[1..$#_] is that evil? -laugh-

Jay Hannah jhannah at omnihotels.com
Wed Mar 22 10:11:23 PST 2006


By the way, I have 20 lines of POD explaining the purpose of those 3
lines of code. :)

j
 

> sub set_rate_single  { 
> $_[0]->SUPER::set_rate_single($_[0]->rate_split_shrinker( 
> @_[1..$#_])) }
> sub set_rate_double  { 
> $_[0]->SUPER::set_rate_double($_[0]->rate_split_shrinker( 
> @_[1..$#_])) }
> sub set_rate_xperson { 
> $_[0]->SUPER::set_rate_xperson($_[0]->rate_split_shrinker(@_[1
> ..$#_])) }

boy, that's unreadable when it line wraps. Hopefully my first post
didn't line wrap...



More information about the Omaha-pm mailing list