Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Why won't say act like say when its tied?

by ikegami (Patriarch)
on Mar 07, 2011 at 04:19 UTC ( [id://891748]=note: print w/replies, xml ) Need Help??


in reply to Why won't say act like say when its tied?

For tied handles, say is implemented as

local $\ = "\n"; print($fh @_);

Maybe there was a bug in 5.10.0. I tested with 5.10.1 and 5.12.2, and they work fine.

Lots of bugs were fixed in 5.10 over 1.5 years ago. What's the point of complaining about bugs if you don't even apply the fixes?

Replies are listed 'Best First'.
Re^2: Why won't say act like say when its tied?
by ELISHEVA (Prior) on Mar 07, 2011 at 05:37 UTC

    Thank-you for the confirmation that two later versions: 5.10.1 and 5.12.2 do not exhibit this behavior.

    As to the "point" of posting the question? Well, for one, I wasn't 100% convinced the problem wasn't me. But even if I were, 5.10.0 is the system perl for an up-to-date Debian Lenny installation. As the newest Debian release (Sqeeze) was only a few weeks ago (Feb 6, 2011), there are still quite a lot of machines out there running Perl 5.10.0 and will be for some time.

    System administrators are by and large a conservative bunch when it comes to the software running their operating system, so the advice "just upgrade" is usually lost on them. Debian moves slowly to release software updates because it wants to make sure all the different programs work together and it has the philosophy, as do many system administrators, that an old good-enough piece of software with a known bug is better than a shiny new piece of software that hasn't yet been tested for cross reactions with all of the other software on their system.

    Additionally, reports and confirmation of bugs in legacy software can help push the decision to test and prepare for upgrade up the priority list.

    Even when there isn't a potential to fix a bug via a patch or upgrade, I think it helps to know that there is a consensus that strange behavior X is in fact a bug. It allows people who have to work with that version of perl, to move on and focus on workarounds or alternatives rather than spending hours trying to fix something that can't be fixed (without a patch or upgrade).

    In my case, this confirmation meant that I updated a test suite with a version check and added a caveat to some documentation. When I only had Corion's confirmation of a fix in 5.12, those caveats were for all versions before 5.12. Now, with your confirmation of good behavior on 5.10.1, I can lower the version threshold to 5.10.1

    Thank-you again for taking the time to test this and report back on your results.

      I didn't mean to suggest that you just upgrade, I just meant that you should consider that it might have been fixed given that you're testing using a very buggy version of Perl. I realise it didn't come out that way, though. And I now see that you did consider it. Sorry, I missed that.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://891748]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found