CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
converting a coderef to a blessed subroutine

 



princepawn
Novice

Sep 20, 2001, 8:52 AM

Post #1 of 1 (840 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


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives