slurp hash from file

2007-02-27 Thread Jorge Almeida
I want to define a hash reference like this: my $h={ a = 'a', b = 'aa \ bbb', }; (Note the string containing escaped newlines.) Now, the point is that I have the block a = 'a', b = 'aa \ bbb', in a text file. It

Re: slurp hash from file

2007-02-27 Thread Adriano Ferreira
On 2/27/07, Jorge Almeida [EMAIL PROTECTED] wrote: I want to define a hash reference like this: my $h={ a = 'a', b = 'aa \ bbb', }; (Note the string containing escaped newlines.) Now, the point is that I have the block a = 'a',

Re: slurp hash from file

2007-02-27 Thread Jorge Almeida
On Tue, 27 Feb 2007, Adriano Ferreira wrote: On 2/27/07, Jorge Almeida [EMAIL PROTECTED] wrote: Let's say your data is in the file data.pl. Then my %hash = do data.pl; my $hash_ref = \%hash; Great! Thanks. -- Jorge Almeida -- To unsubscribe, e-mail: [EMAIL PROTECTED] For