Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7414013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:59:22+00:00 2026-05-29T06:59:22+00:00

Perl version: v5.10.1 (*) built for x86_64-linux-thread-multi I am using Spreadsheet::WriteExcel and I have

  • 0

Perl version: v5.10.1 (*) built for x86_64-linux-thread-multi

I am using Spreadsheet::WriteExcel and I have been able to successfully create a new workbook, create worksheets, close workbook, etc. However, after issuing close on the workbook, I can no longer print to STDOUT.

my $outFile = tmpnam();
my $workbook = Spreadsheet::WriteExcel->new($outFile);
die "Error creating new Excel workbook: $!" unless defined $workbook;
...
$workbook = close() or die "Error closing Excel workbook: $!";

print "Trying to print something\n";

This is when I get the “print() on closed filehandle STDOUT” error message.

I’ve read and tried to use IO::Scalar method described by John McNamara to no avail. How do I re-open STDOUT for output?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:59:22+00:00Added an answer on May 29, 2026 at 6:59 am
    $workbook = close()
    

    This calls the global function close with no parameter, thereby closing STDOUT (or whatever the last selected filehandle was).

    Did you mean this?

    $workbook->close()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have perl, v5.6.1 built for MSWin32-x86-multi-thread Binary build 638 provided by ActiveState. I
I've got 64-bit Vista with ActiveState Perl v5.10.0 built for MSWin32-x64-multi-thread and I'm trying
Apache version 2.2.11 (Unix) Architecture x86_64 Operating system Linux Kernel version 2.6.18-164.el5 Ok, here
I have created an executable (.exe) of a perl script on a 64-bit linux
I have a Perl script running on version 5.10 build 1004 of ActiveStates Active
Ok, I know how to install Perl modules with cpan and have been doing
I have an application that is built to work on Windows, Linux, and Solaris
I have a Perl script that I've written and can compile it using pp
Context: ActiveState Perl: This is perl 5, version 12, subversion 4 (v5.12.4) built for
I'm using cpanm to install Perl modules, but I can't install Thread::Pool for some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.