in reply to A Strange print() predicament.
Here's a real direct way to do it:
That temporarily overrides perl's builtin print and printf with a no-op.{ my $variable_for_file = 'moose'; local *CORE::GLOBAL::print = sub {1}; local *CORE::GLOBAL::printf = sub {1}; do file.inc; }
Update: This doesn't work - peer into the future and see !Overriding Builtin print.
After Compline,
Zaxo
|
|---|