Greetings:

Well what you wanan do it's export a function from another class.

You can do it using 2 ways, standard way (using EXPORTER) or
using Object Oriented Programming in your style.

learn.perl.org has the Beginning perl book online, check the OO
chapter and the modules one.

Good luck! 


On 17:33 Mon 08 Sep     , Ling F. Zhang wrote:
> Let's say thatI wroute some code long time ago:
> code1.pl. In the file there is this subroutine1();
> 
> now I am writting another code code2.pl, and would
> like to use that subroutine1()...how do I do it
> without copy and pasting it to my code2.pl?
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Marco Antonio Manzo Bañuelos
[EMAIL PROTECTED]
http://www.unix-power.net

PGP key 1024D/50C2FDFE 2002-12-20
fingerprint F90D 93B1 021F 1D35 E57A  9E7F BEEE CE06 50C2 FDFE

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to