No such thing as a small change | |
PerlMonks |
Perl includes to reuse code.by Anonymous Monk |
on May 30, 2016 at 05:28 UTC ( [id://1164483]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have created a file called system_mod_includes.pm and the contents of the file are as below:
Then I have another module called Utils.pm. In this module I am using a function of perl module Data::Dumper. For example as below:
OR
But this gives me error saying the function Dumper is unknown. But use Data::Dumper is already defined in system_mod_includes.pm. The error however goes away if I defined use Data::Dumper in Utils.pm as well.
Back to
Seekers of Perl Wisdom
|
|