thanx for the reply Corion....
i read "the subroutines are written and store in the file with extension .pm and we can use that subroutine in someother file using -use module;- i tried to implement it is giving error as -cannot locate module in @INC- i also tried using push(@INC,"d:\\module.pm") but still it is giving error,,,,, thats why i asked one code..."
| [reply] |
use lib 'D:/uva/code/';
use UvaModule;
Read the lib documentation. | [reply] [d/l] [select] |
thanx Corion,,,, i am not sure whether the following code is write
======================================
#file1 is in "d:/test.pm"
sub uvaraj
{
$name='ramu';
print 'uvaraj is a good boy in nature but...';
}
===================================
#file2 is in "d:/run.pl"
use lib 'D:/';
use test;
&uvaraj;
====================
i run the second file, it is giving error as "test.pm didnt return a true value" | [reply] [d/l] [select] |