develooper Front page | perl.perl6.language.data | Postings from September 2000

Re: RFC 237 (v1) hashes should interpolate in double-quoted strings

Thread Previous | Thread Next
From:
Bart Lateur
Date:
September 18, 2000 09:30
Subject:
Re: RFC 237 (v1) hashes should interpolate in double-quoted strings
Message ID:
fogcss42553mt2ohfe705q3ag2j8t2qg05@4ax.com
On 17 Sep 2000 23:54:05 -0400, Chaim Frenkel wrote:

>What about formating the output as a value that can be used by eval?
>
>	%hash = (a => 1, b => 'the world');
>	print "%{hash}\n";
>
>('a' => 1, 'b'=> 'the world')

So, what about arrays? Or scalars?

We have Data::Dumper for that.

-- 
	Bart.

Thread Previous | 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