On Fri, 2008-09-26 at 18:49 +0300, Vyacheslav Karamov wrote:
> But if subroutine has only 2 parameters (i.e. tag has no attributes)
> 
> %attrs = @_;
> 
> gives the warning.
> 

It doesn't on my machine.  Try:

my %attrs = @_ || ();


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Linux is obsolete.
-- Andrew Tanenbaum


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to