in reply to Re^3: creating a class with encapsulation ?
in thread creating a class with encapsulation ?

im having trouble running it i tried your client code as a test file nothing happened. no output file was created. and yes i set the class as .pm
  • Comment on Re^4: creating a class with encapsulation ?

Replies are listed 'Best First'.
Re^5: creating a class with encapsulation ?
by Athanasius (Archbishop) on Apr 29, 2016 at 02:43 UTC

    It works correctly for me. A few things to check:

    • Does your module file CCD/Human.pm begin and end like this?

      package CCD::Human; ... 1; # return a true value
    • Does your client code use CCD::Human;?

    • Are the data items on each line of .../home/ki/Downloads/currenthumanccds.txt separated by tab characters?

    • Is the file .../home/ki/output.txt created when you run the script? What does it contain?

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Re^5: creating a class with encapsulation ?
by Anonymous Monk on Apr 29, 2016 at 01:38 UTC
    it isn't supposed to produce any output, also its incomplete, you have to finish it