good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Assigning printf to a variableby Bod (Parson) |
on Oct 20, 2021 at 12:19 UTC ( [id://11137795]=note: print w/replies, xml ) | Need Help?? |
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?
In Section
Seekers of Perl Wisdom
|
|