in reply to Re: Assigning printf to a variable
in thread Assigning printf to a variable
pryrt very helpfully provided a snippet to redirect STDOUT over on Re^2: Errors uncaught by CGI::Carp
There, the >& file operator was used. I had come across this before but didn't properly understand it. So I looked it up and thought I understood. But, from my understanding I would have thought that Fletch's example should use open( my $fh, q{>&}, \$output ) or die "Problem redirecting to scalar: $!\n"; instead of the plain q{>}
What have I missed?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Assigning printf to a variable
by pryrt (Abbot) on Oct 20, 2021 at 14:43 UTC |