Re: using subroutine from another file

2003-09-09 Thread Marco Antonio Manzo
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! O

RE: using subroutine from another file

2003-09-08 Thread Hanson, Rob
Try this... require 'code1.pl'; call_your_sub(); This will also execute the code in code1.pl (if there is anything outside of a sub block), which may not be what you want. Rob -Original Message- From: Ling F. Zhang [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2003 8:33 PM To: