Chris Pax wrote:
so I tried require and do.
I guess its best to explain my goal here. I am using perl for gtk
programming. The main code will use the glade bindings and use a
separate file for call backs. I want to make it so that if a new
callback/function is defined in the glade file, that function will be
appended to the callbacks file, with the 1; at the end. this way, you
don't half to keep on doing it your self or running some script.

####################### calculator.pl###################

#!/usr/bin/perl
####################################
### Main package ##
####################################

my $path =  $0 ;
sub get_old_callbacks{
        open CALLS, "calls.pm";

open CALLS, '<', 'calculatorCallbacks.pm' or die 'cannot open 
calculatorCallbacks.pm: $!';

# Always check an open to make sure it opened properly.


--
Just my 0.00000002 million dollars worth,
 Shawn

"For the things we have to learn before we can do them, we learn by doing them."
 Aristotle

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to