in reply to Re^9: How can I avoid code repetition here
in thread How can I avoid code repetition here
I now see that you meant the case
Sorry for my misunderstanding. But in this case, I don't see why my original code would not work for this case?my $_; # lexical declared in outer scope sub f { # $_ used here.... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: How can I avoid code repetition here
by JavaFan (Canon) on Oct 12, 2009 at 11:03 UTC | |
by rovf (Priest) on Oct 12, 2009 at 11:10 UTC | |
by JavaFan (Canon) on Oct 12, 2009 at 11:17 UTC | |
by rovf (Priest) on Oct 12, 2009 at 11:24 UTC |