Doctrin has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to override "-X" functions (-s,-d,-f...) similarly? Thanks!BEGIN { *CORE::GLOBAL::open = sub { warn "Captured: " . $_[1]; open $_[0], $_ +[1] }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Overriding "-s", "-f" and other -X functions
by haukex (Archbishop) on Jul 07, 2018 at 07:55 UTC | |
|
Re: Overriding "-s", "-f" and other -X functions
by Athanasius (Archbishop) on Jul 07, 2018 at 07:53 UTC | |
by haukex (Archbishop) on Jul 07, 2018 at 08:00 UTC |