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..."