Monday, September 2, 2013

How can you restore original @INC in Perl?

When the lib module is first loaded, the current value of @INC is recorded in "@lib::ORIG_INC". To restore @INC to original value, you can use :

@INC = @lib::ORIG_INC;

No comments :