i have two files ###########callbacks.pm############### sub foo{ return "foo"; }
sub bar{ return "foo"; } 1; ################# ############main.pl############## #!/usr/bin/perl #PSUDO CODE# #open callbacks.pm #remove 1; #write "sub moo{\n\treturn \"moo\";\n}\n" #write "1;" package mainprog; use callbacks; print foo(); print bar(); print moo(); 1; ###################3 you see here what i want to happen. what I am doing is writing a new function to the callbacks file, then I want to import the file. the real code fallows the same logic. i tested the read and write stuff, and it works. but when I do it this way, it does not. I had a similar situation with python. the solution was to a function call reload. I would import the module and do a reload(modname). that solve my problem in python. I wonder if there is a similar function in perl. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/