Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

how to call a sub via variable in library

by glenn (Scribe)
on Nov 17, 2014 at 18:21 UTC ( [id://1107446]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Orginal non-OO: &{\&{$testname}}($system);
    updated as OO:  $self->{&{\&{$testname}}}->($system); #system is hashr
    +ef
    
  2. or download this
    =pod
    Nov 17 12:27:47, tests.pm              , executetest          ,   128:
    + processing executetest
    ...
    SELF:
    Nov 17 12:27:47, tests.pm              , cleanupConfig        ,  1572,
    + FATAL WARNING: Can't call method "_idown" on an undefined value
    =cut
    
  3. or download this
    use XML::Simple;
    my @xmlOptsO = (KeepRoot=>1, KeyAttr=>[]);
    ...
    
    $tests->enqueue(XMLout("<system><job><step name='cleanup'><nextjob>0:1
    +</nextjob></job></system>", @xmlOptsO)); #start
    my $system = $test->dequeue(); #complete
    
  4. or download this
    package tests;
    #constructor
    ...
    
        return $system;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found