Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to dynamically invoke one of several similarly named modules

by awncorp (Acolyte)
on Aug 24, 2022 at 20:41 UTC ( [id://11146385]=note: print w/replies, xml ) Need Help??


in reply to How to dynamically invoke one of several similarly named modules

Fwiw
package main; use Venus::Match; use Venus::Space; my $name = 'lonprod'; my $match = Venus::Match->new($name); $match->just('lonprod')->then('App:London::Production::LogTable') $match->just('parprod')->then('App::Paris::Production::LogTable') $match->just('lontest')->then('App::London::Test::LogTable') $match->just('partest')->then('App::Paris::Test::LogTable') my $result = Venus::Space->new($match->result)->build->find_or_create( { column1 => $data{"column1"}, column2 => $data{"column2} } );
"I am inevitable." - Thanos
  • Comment on Re: How to dynamically invoke one of several similarly named modules
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-24 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found