Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 ( #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
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? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-04-16 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?