Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: if condition within module

by marinersk (Priest)
on Aug 15, 2017 at 10:58 UTC ( #1197413=note: print w/replies, xml ) Need Help??


in reply to if condition within module

You are asking how to use if()in a module.

  1. Your code doesn't show a module
  2. The use of if()isn't any different in a module than a main script.

So I'm not sure how to answer your question.

Is it possible you are really asking how to write a module?

Replies are listed 'Best First'.
Re^2: if condition within module
by gowthamvels (Novice) on Aug 15, 2017 at 12:30 UTC

    Thanks for the response, I am asking for how to use the if() in this code

      I'm unfamiliar with Data::Table, a quick scan of the documentation shows examples of the various matching methods, match_pattern,match_string and so on, which you could use. The documentation also links to a PDF cookbook. I suggest you learn to use the tools you've chose, on in this case, that you've decoded to used based upon someone else giving you this code.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2022-10-06 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?