Re: [OT] Overridding a module's use of a function

2001-10-11 Thread Drew Taylor
It's funny you should ask, because I just finished reading that section today! :-) On pg 306-7 of the Camel (3rd edition): *CORE::GLOBAL::glob = sub { my $pat = shift; my @got; # do whatever return @got; } will override a built-in function everywhere, regardless of namespace

Re: [OT] Overridding a module's use of a function

2001-10-11 Thread Robert Landrum
At 5:15 PM -0500 10/11/01, George Sanderson wrote: >I discovered that File::NCopy uses the function "glob" to expand file >names. My problem is that I need to pass file names that have spaces in >them and "glob" does not process them. So I did the following override (I >do not need to expand the

[OT] Overridding a module's use of a function

2001-10-11 Thread George Sanderson
I discovered that File::NCopy uses the function "glob" to expand file names. My problem is that I need to pass file names that have spaces in them and "glob" does not process them. So I did the following override (I do not need to expand the file names): package Apache::AAM; . . . package File: