Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Is there something that can turn a coderef undef from inside the coderef?

by saberworks (Curate)
on Jun 10, 2011 at 23:40 UTC ( [id://909229]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     $_->(@args) foreach @{$self->get_hooks_for($hook_name)};
    
  2. or download this
    $VAR1 = [
              sub { "DUMMY" },
              sub { "DUMMY" }
            ];
    
  3. or download this
    $VAR1 = [
              sub { "DUMMY" },
              undef
            ];
    
  4. or download this
       foreach my $hook (@{ $self->get_hooks_for($hook_name) }) {
           $hook->(@args);
       }
    
  5. or download this
    my @hooks = @{ $self->get_hooks_for($hook_name) };
    
    $_->(@args) foreach @hooks;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://909229]
Approved by BrowserUk
Front-paged by BrowserUk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-29 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found