http://qs321.pair.com?node_id=1197413


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.