
princepawn
Novice
Sep 20, 2001, 8:52 AM
Post #1 of 1
(585 views)
|
|
converting a coderef to a blessed subroutine
|
Can't Post
|
|
Hi, I would like to convert a code ref into a blessed subroutine, but add argument parsing before doing so. In other words: my $x = builder { warn $self->{g} }; should switch to my $x = bless sub { my $self = shift; warn $self->{g} }, HTML::Seamstress::Builder
|