home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book Home Programming PerlSearch this book

13.9. Run-Time Overloading

Since use statements are executed at compile time, the only way to change overloading during run time is:

eval " use overload '+' => \&my_add ";
You can also say:
eval " no overload '+', '--', '<=' ";
although the use of these constructs during run time is questionable.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.