http://www.perlmonks.org?node_id=1184983


in reply to Re: How to rewrite the following script without using the matching words using perl?
in thread How to rewrite the following script without using the matching words using perl?

The code which i posted the working program part.in the above script everything is working fine but the problem is i had used the match by identifying it manually for every second column.How can i do it without manually mentioning the names.
  • Comment on Re^2: How to rewrite the following script without using the matching words using perl?

Replies are listed 'Best First'.
Re^3: How to rewrite the following script without using the matching words using perl?
by Corion (Pope) on Mar 17, 2017 at 08:16 UTC

    No, the code you posted does not execute.

    It also tries to connect to a database, which certainly is not relevant to your problem at all. Remove that part.

    Then, you most likely want to learn about hashes. See Modern Perl Programming, a good, free ebook and paper book which also covers learning about hashes.