Jeff Pang пишет:
2008/9/26 Vyacheslav Karamov <[EMAIL PROTECTED]>:%attrs = shift if @_ > 2;I doubt this can work correctly. You may need: %attrs = @_; # get the leftover arguments as hash's keys/values or, %attrs = %{+shift}; # get the third argument which is a hash reference
But if subroutine has only 2 parameters (i.e. tag has no attributes) %attrs = @_; gives the warning. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
