in reply to Uninitialized filehandles not as advertised?!

Are you sure you're calling the right Perl version? Grepping through the 5.8.8 Perl sources doesn't locate any such message, so it's unlikely it's issued by this version of Perl.  OTOH, Solaris' system Perl is typically ancient (e.g. 5.005_03 on Solaris 8), so my guess would be that you're inadvertently calling this system Perl...

5.005_03

$ /usr/bin/perl -e 'open my $fh, "uname -rs |"; print <$fh>;' Can't use an undefined value as filehandle reference at -e line 1.

5.8.8

$ /usr/local/bin/perl -e 'open my $fh, "uname -rs |"; print <$fh>;' SunOS 5.8

Replies are listed 'Best First'.
Re^2: Uninitialized filehandles not as advertised?!
by Eli-Sko (Novice) on May 27, 2008 at 06:43 UTC
    Thank you, almut, this is indeed the case!

    I have no control over the environment here, and the sysadmins have chosen to play games with which perl my she-bang invokes, so that it varies from environment to environment in this multi-platform shop.

    Once you confirmed that I wasn't going nuts, then I knew that this HAD to be the problem, and I confirmed it. I have since developed a workaround which I intend to be the subject of my next posting.

    Thanks again!Eli-Sko