in reply to b $var

b subname [condition] Set a breakpoint before the first line of the named + subroutine. subname may be a variable containing a code reference (in this case condition is not supported) +.
The perldoc perldebug has a bit more information. Note the word "named". Seems to imply that you can't do that with anonymous subroutines.

Replies are listed 'Best First'.
Re^2: b $var
by radiantmatrix (Parson) on Jun 17, 2008 at 18:15 UTC

    Seems to imply that you can't do that with anonymous subroutines.

    subname may be a variable containing a code reference

    "A variable containing a code reference" can be an anonymous subroutine. The doc bit that says "named subroutine" doesn't mean it the way you read it.

    <radiant.matrix>
    Ramblings and references
    “A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort.” — Herm Albright
    I haven't found a problem yet that can't be solved by a well-placed trebuchet