Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Erm? Bug or not? Weird behaviour in hash / list conversion

by rdfield (Priest)
on Oct 29, 2003 at 13:50 UTC ( [id://303001]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Erm? Bug or not? Weird behaviour in hash / list conversion
in thread Erm? Bug or not? Weird behaviour in hash / list conversion

Your tied hash example still displays broken-ness:
perl -e "%h = (1,1,1,1); print %h"
gives
11
not the
1111
displayed in your tied hash example.

rdfield

Replies are listed 'Best First'.
Re: Re: Re: Re: Erm? Bug or not? Weird behaviour in hash / list conversion
by BrowserUk (Patriarch) on Oct 29, 2003 at 21:12 UTC

    Your absolutely right++. Whilst tieing the hash 'fixes' the undefined values problem, it still results in the wrong output.

    Seems pretty clear that there are two bugs that are interacting to produce the bizarre results in the original problem. Tieing the hash bapasses one of them, but the second is still there. Well spotted.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    Hooray!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-23 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found