Next, I took out the $SIG{__WARN__}. You won't need it here because perl will adamantly tell you that it can't find sys/ioctl.ph, at least it does that on my system. I used the full path to ioctl.ph, but then perl complained that it couldn't find _h2ph_pre.ph. I ended up deleting the block.The SIG WARN is to suppress a bunch of noise WARNINGS.
If the file doesn't exist you don't get a warning, you get an error:
(I added "-bogo" so it would fail so you can see the difference). If you don't have the file you need to generate it with 'h2ph' -- something that your installer should have done when it installed perl. The warnings I suppressed with the '$SIG{__WARN__}...' (cuz no warnings "all" doesn't disable all warnings as it should!!) are:Can't locate sys/ioctl-bogo.ph in @INC (@INC contains: /usr/local/lib/ +perl/5.8 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/per +l5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi / +usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_ +64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl +5/vendor_perl .) at ./getrowcol.pl line 7.
None of those are relevant to this code...Constant subroutine __USE_POSIX undefined at /usr/lib/perl5/vendor_per +l/5.10.0/x86_64-linux-thread-multi/features.ph line 9. Constant subroutine __USE_POSIX2 undefined at /usr/lib/perl5/vendor_pe +rl/5.10.0/x86_64-linux-thread-multi/features.ph line 10. Constant subroutine __USE_POSIX199309 undefined at /usr/lib/perl5/vend +or_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 11. Constant subroutine __USE_POSIX199506 undefined at /usr/lib/perl5/vend +or_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 12. Constant subroutine __USE_XOPEN undefined at /usr/lib/perl5/vendor_per +l/5.10.0/x86_64-linux-thread-multi/features.ph line 13. Constant subroutine __USE_XOPEN_EXTENDED undefined at /usr/lib/perl5/v +endor_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 14. Constant subroutine __USE_UNIX98 undefined at /usr/lib/perl5/vendor_pe +rl/5.10.0/x86_64-linux-thread-multi/features.ph line 15. Constant subroutine __USE_LARGEFILE undefined at /usr/lib/perl5/vendor +_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 18. Constant subroutine __USE_LARGEFILE64 undefined at /usr/lib/perl5/vend +or_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 19. Constant subroutine __USE_FILE_OFFSET64 undefined at /usr/lib/perl5/ve +ndor_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 20. Constant subroutine __USE_BSD undefined at /usr/lib/perl5/vendor_perl/ +5.10.0/x86_64-linux-thread-multi/features.ph line 21. Constant subroutine __USE_SVID undefined at /usr/lib/perl5/vendor_perl +/5.10.0/x86_64-linux-thread-multi/features.ph line 22. Constant subroutine __USE_MISC undefined at /usr/lib/perl5/vendor_perl +/5.10.0/x86_64-linux-thread-multi/features.ph line 23. Constant subroutine __USE_GNU undefined at /usr/lib/perl5/vendor_perl/ +5.10.0/x86_64-linux-thread-multi/features.ph line 25. Constant subroutine __USE_REENTRANT undefined at /usr/lib/perl5/vendor +_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 26. Constant subroutine _POSIX_SOURCE undefined at /usr/lib/perl5/vendor_p +erl/5.10.0/x86_64-linux-thread-multi/features.ph line 51. Constant subroutine _POSIX_C_SOURCE undefined at /usr/lib/perl5/vendor +_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 53. Constant subroutine _XOPEN_SOURCE undefined at /usr/lib/perl5/vendor_p +erl/5.10.0/x86_64-linux-thread-multi/features.ph line 55. Constant subroutine _XOPEN_SOURCE_EXTENDED undefined at /usr/lib/perl5 +/vendor_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 57. Constant subroutine _LARGEFILE64_SOURCE undefined at /usr/lib/perl5/ve +ndor_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 59. Constant subroutine __USE_ISOC99 undefined at /usr/lib/perl5/vendor_pe +rl/5.10.0/x86_64-linux-thread-multi/features.ph line 107. Constant subroutine _ATFILE_SOURCE undefined at /usr/lib/perl5/vendor_ +perl/5.10.0/x86_64-linux-thread-multi/features.ph line 112. Constant subroutine _LARGEFILE_SOURCE undefined at /usr/lib/perl5/vend +or_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 120. Constant subroutine __USE_ISOC99 undefined at /usr/lib/perl5/vendor_pe +rl/5.10.0/x86_64-linux-thread-multi/features.ph line 127. Constant subroutine __GNU_LIBRARY__ undefined at /usr/lib/perl5/vendor +_perl/5.10.0/x86_64-linux-thread-multi/features.ph line 175. Operator or semicolon missing before &__inline at (eval 99) line 1. Ambiguous use of & resolved as operator & at (eval 99) line 1.
As for your statement:
There's no bug---the error messages mean exactly what they say. To find the way that you got there, let's start at the beginning.Since you didn't find the problem, it's obvious that, while the error messages may mean "exactly what they say", you don't know what that is any more than I did.
They do mean what they say, but what they say is not exactly clear (or we wouldn't have had so many people like you and me confused over what is(was) going on...)
In reply to Re^3: Don't understand why can't get 'size' assoc w/STDOUT
by perl-diddler
in thread Don't understand why can't get 'size' assoc w/STDOUT
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |