in reply to Re: Encapsulation and Subroutine redefined warnings
in thread Encapsulation and Subroutine redefined warnings
With loops like this in my driver script, I should be able to simply add a new use statement for new processors.foreach $symname (sort keys %main::) { #print "$_\n" if /^ybcp/; if ( $symname =~ /^ybcp/ ) { local *sym = $main::{$symname}; $$sym->init(); #print "\$$symname\n" if defined $sym; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Encapsulation and Subroutine redefined warnings
by qq (Hermit) on Nov 25, 2003 at 23:50 UTC |