develooper Front page | perl.perl6.language | Postings from July 2005

Stringification of pairs

Thread Next
From:
Ingo Blechschmidt
Date:
July 31, 2005 09:45
Subject:
Stringification of pairs
Message ID:
dciv6m$97q$1@sea.gmane.org
Hi,

quick question:

    my $pair = (a => 1);
    say ~$pair;

I assume that outputs "a\t1", because of the "pairs can pretend to be
one-element hashes"-rule. Correct?


--Ingo

-- 
Linux, the choice of a GNU | We are Pentium of Borg. Division is futile.
generation on a dual AMD   | You will be approximated.  
Athlon!                    | 


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About