The new, cool way to handle this is with Capture::Tiny. You can use it surgically to affect just the part of the program where you need it without disturbing anything else. But, I’d probably do what cjm recommends since that doesn’t require a module.
More Related Contents:
- Failing to install MIME::Base64 using cpan [closed]
- Declaring a 2D coordinate in Perl / C / C++ [closed]
- how to use multiple IP’s in perl script
- Why can’t Perl find my file that is in ClearCase?
- How can I use a variable as a variable name in Perl?
- How can I use a new Perl module without install permissions?
- Difference of Two Arrays Using Perl
- How can I output UTF-8 from Perl?
- What’s the difference between a hash and hash reference in Perl?
- Multiline search replace with Perl
- How do I “use” a Perl module in a directory not in @INC?
- How can I process options using Perl in -n or -p mode?
- How can I hook into Perl’s print?
- How can I dynamically include Perl modules without using eval?
- Why do my Perl tests fail with use encoding ‘utf8’?
- How can I compile my Perl script so it can be executed on systems without ‘perl’ installed?
- How can I guess the encoding of a string in Perl?
- What is the difference between Perl’s ( or, and ) and ( ||, && ) short-circuit operators?
- Using output from a previous job in a new one in a GitHub Action
- What does !! (double exclamation point) mean?
- Using my with parentheses and only one variable
- Obtain a switch/case behaviour in Perl 5
- Do you use an exception class in your Perl programs? Why or why not?
- How do I extract the domain out of an URL?
- Why does $foo->{bar} autovivify but %$foo doesn’t?
- In Perl, is it better to use a module than to require a file?
- Demystifying the Perl glob (*)
- Why does !1 give me nothing in Perl?
- In Perl, is it appropriate to use map in void context instead of a foreach loop?
- How does a Perl program know where to find the file containing Perl module it uses?