Re: Modification of a hash-by-reference parameter in a recursive sub

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Quoted text here. Click to load it

Why use $_ and not a named variable?
  foreach my $html(@_) {
    if (ref $html) {
       if ($html->tag() ne "head"

It's more readable and less likely that you accidentally
modify $_ in any loop longer than a few lines.

Site Timeline